From 0c9705f5f1de65f6ec1eebb88c03de7e76668258 Mon Sep 17 00:00:00 2001 From: David Mak Date: Mon, 25 Nov 2024 15:28:58 +0800 Subject: [PATCH] [meta] Apply clippy changes --- nac3artiq/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nac3artiq/src/lib.rs b/nac3artiq/src/lib.rs index cb8ff5d77..b86c25342 100644 --- a/nac3artiq/src/lib.rs +++ b/nac3artiq/src/lib.rs @@ -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)) })?;