Skip to content

Commit 4036a5d

Browse files
committed
fix clippy
1 parent 7e1bf92 commit 4036a5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dsc_lib/src/discovery/command_discovery.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl CommandDiscovery {
9595
Ok(v) => {
9696
resource_path_setting = v;
9797
},
98-
Err(e) => {
98+
Err(e) => {
9999
debug!("{e}");
100100
}
101101
}
@@ -144,7 +144,7 @@ impl CommandDiscovery {
144144
paths.push(exe_home_pb);
145145

146146
if let Ok(new_path) = env::join_paths(paths.clone()) {
147-
env::set_var("PATH", &new_path);
147+
env::set_var("PATH", new_path);
148148
}
149149
}
150150
}
@@ -369,7 +369,7 @@ impl ResourceDiscovery for CommandDiscovery {
369369
} else {
370370
self.discover_resources("*")?;
371371
self.discover_adapted_resources(type_name_filter, adapter_name_filter)?;
372-
372+
373373
// add/update found adapted resources to the lookup_table
374374
add_resources_to_lookup_table(&self.adapted_resources);
375375

@@ -652,7 +652,7 @@ fn save_adapted_resources_lookup_table(lookup_table: &HashMap<String, String>)
652652
fn load_adapted_resources_lookup_table() -> HashMap<String, String>
653653
{
654654
let file_path = get_lookup_table_file_path();
655-
655+
656656
let lookup_table: HashMap<String, String> = match fs::read(file_path.clone()){
657657
Ok(data) => { serde_json::from_slice(&data).unwrap_or_default() },
658658
Err(_) => { HashMap::new() }

0 commit comments

Comments
 (0)