forked from M-Labs/nac3
1
0
Fork 0

[meta] Apply clippy changes

This commit is contained in:
David Mak 2024-11-25 15:28:58 +08:00
parent 5f940f86d9
commit 0c9705f5f1
1 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ impl Nac3 {
let source_file = source_file.extract()?;
(
source_file,
fs::read_to_string(&source_file).map_err(|e| {
fs::read_to_string(source_file).map_err(|e| {
exceptions::PyIOError::new_err(format!(
"failed to read input file: {e}"
))
@ -1119,7 +1119,7 @@ impl Nac3 {
}
for module in content_modules {
let module: PyObject = module.extract()?;
modules.insert(id_fn.call1((&module,))?.extract()?, module.into());
modules.insert(id_fn.call1((&module,))?.extract()?, module);
}
Ok((modules, class_ids))
})?;