Rust - serialization fixes + loading/saving methods

This commit is contained in:
Anthony MOI
2020-05-19 19:01:48 -04:00
parent 5d4dfc2340
commit cffcbb95fc
3 changed files with 41 additions and 23 deletions

View File

@@ -605,7 +605,7 @@ impl Tokenizer {
}
}
#[args(pretty = true)]
#[args(pretty = false)]
fn save(&self, path: &str, pretty: bool) -> PyResult<()> {
ToPyResult(self.tokenizer.save(path, pretty)).into()
}