From 4036a5d7e9a181a4eb371dc63e57860a6f4a06ac Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Sat, 16 Nov 2024 17:29:39 -0800 Subject: [PATCH] fix clippy --- dsc_lib/src/discovery/command_discovery.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dsc_lib/src/discovery/command_discovery.rs b/dsc_lib/src/discovery/command_discovery.rs index 6d0e26a5..4480fdb4 100644 --- a/dsc_lib/src/discovery/command_discovery.rs +++ b/dsc_lib/src/discovery/command_discovery.rs @@ -95,7 +95,7 @@ impl CommandDiscovery { Ok(v) => { resource_path_setting = v; }, - Err(e) => { + Err(e) => { debug!("{e}"); } } @@ -144,7 +144,7 @@ impl CommandDiscovery { paths.push(exe_home_pb); if let Ok(new_path) = env::join_paths(paths.clone()) { - env::set_var("PATH", &new_path); + env::set_var("PATH", new_path); } } } @@ -369,7 +369,7 @@ impl ResourceDiscovery for CommandDiscovery { } else { self.discover_resources("*")?; self.discover_adapted_resources(type_name_filter, adapter_name_filter)?; - + // add/update found adapted resources to the lookup_table add_resources_to_lookup_table(&self.adapted_resources); @@ -652,7 +652,7 @@ fn save_adapted_resources_lookup_table(lookup_table: &HashMap) fn load_adapted_resources_lookup_table() -> HashMap { let file_path = get_lookup_table_file_path(); - + let lookup_table: HashMap = match fs::read(file_path.clone()){ Ok(data) => { serde_json::from_slice(&data).unwrap_or_default() }, Err(_) => { HashMap::new() }