Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveL-MSFT committed Nov 17, 2024
1 parent 7e1bf92 commit 4036a5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dsc_lib/src/discovery/command_discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl CommandDiscovery {
Ok(v) => {
resource_path_setting = v;
},
Err(e) => {
Err(e) => {
debug!("{e}");
}
}
Expand Down Expand Up @@ -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);
}
}
}
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -652,7 +652,7 @@ fn save_adapted_resources_lookup_table(lookup_table: &HashMap<String, String>)
fn load_adapted_resources_lookup_table() -> HashMap<String, String>
{
let file_path = get_lookup_table_file_path();

let lookup_table: HashMap<String, String> = match fs::read(file_path.clone()){
Ok(data) => { serde_json::from_slice(&data).unwrap_or_default() },
Err(_) => { HashMap::new() }
Expand Down

0 comments on commit 4036a5d

Please sign in to comment.