Skip to content

Commit 5835c59

Browse files
committed
linting
1 parent 75bde54 commit 5835c59

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/validators/prebuilt.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
use std::sync::Arc;
22

3+
use pyo3::exceptions::PyValueError;
34
use pyo3::intern;
45
use pyo3::prelude::*;
56
use pyo3::types::{PyDict, PyType};
6-
use pyo3::exceptions::PyValueError;
77

88
use crate::errors::ValResult;
99
use crate::input::Input;
1010
use crate::tools::SchemaDict;
1111

1212
use super::ValidationState;
13-
use super::{BuildValidator, CombinedValidator, DefinitionsBuilder, Validator, SchemaValidator};
13+
use super::{BuildValidator, CombinedValidator, DefinitionsBuilder, SchemaValidator, Validator};
1414

1515
#[derive(Debug)]
1616
pub struct PrebuiltValidator {
@@ -38,7 +38,11 @@ impl BuildValidator for PrebuiltValidator {
3838
let combined_validator: Arc<CombinedValidator> = schema_validator.validator.clone();
3939
let name = class.getattr(intern!(py, "__name__"))?.extract()?;
4040

41-
return Ok( Self { validator: combined_validator, name}.into())
41+
return Ok(Self {
42+
validator: combined_validator,
43+
name,
44+
}
45+
.into());
4246
}
4347
}
4448
Err(PyValueError::new_err("Prebuilt validator not found."))

0 commit comments

Comments
 (0)