From 40255b6106d522734855e3b9e2783fb47434b1a0 Mon Sep 17 00:00:00 2001 From: Dave Patrick Caberto Date: Sat, 27 Jan 2024 20:25:31 +0800 Subject: [PATCH] refactor: fix clippy errors --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 34f4f55..0c896ee 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -296,7 +296,7 @@ pub fn gen_settings( let schema_file_path = SpannedValue::into_inner(file_attr); // Parse schema list - let schema_file = File::open(&schema_file_path).unwrap_or_else(|err| { + let schema_file = File::open(schema_file_path).unwrap_or_else(|err| { abort!(file_attr_span, "failed to open schema file: {}", err); }); let schema_list: SchemaList = quick_xml::de::from_reader(BufReader::new(schema_file))