Adding clippy as a linter within the Python binding. (#388)

* Adding clippy as a linter within the Python binding.

* Missing clippy (dropped commit ??)
This commit is contained in:
Nicolas Patry
2020-09-04 15:09:02 +02:00
committed by GitHub
parent 57dc1ffc92
commit df827d538f
4 changed files with 11 additions and 6 deletions

View File

@ -311,8 +311,7 @@ mod test {
let py_seq: PyNormalizerWrapper = Sequence::new(vec![NFC.into(), NFKC.into()]).into();
let py_wrapper_ser = serde_json::to_string(&py_seq).unwrap();
let rs_wrapped =
NormalizerWrapper::Sequence(Sequence::new(vec![NFC.into(), NFKC.into()]).into());
let rs_wrapped = NormalizerWrapper::Sequence(Sequence::new(vec![NFC.into(), NFKC.into()]));
let rs_ser = serde_json::to_string(&rs_wrapped).unwrap();
assert_eq!(py_wrapper_ser, rs_ser);