mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-23 16:49:27 +00:00
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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user