Skip to content

Commit 4ef6b58

Browse files
authored
Update ext.rs
1 parent 1a07b2f commit 4ef6b58

File tree

1 file changed

+3
-3
lines changed
  • crates/config/src/providers

1 file changed

+3
-3
lines changed

crates/config/src/providers/ext.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,11 +356,11 @@ impl Provider for DappHardhatDirProvider<'_> {
356356
let lib = self.0.join("lib");
357357
if node_modules.exists() {
358358
if lib.exists() {
359-
libs.push(lib.file_name().unwrap().to_string_lossy().to_string());
359+
libs.push(lib.file_name().unwrap().to_string_lossy().into_owned());
360360
}
361-
libs.push(node_modules.file_name().unwrap().to_string_lossy().to_string());
361+
libs.push(node_modules.file_name().unwrap().to_string_lossy().into_owned());
362362
} else {
363-
libs.push(lib.file_name().unwrap().to_string_lossy().to_string());
363+
libs.push(lib.file_name().unwrap().to_string_lossy().into_owned());
364364
}
365365

366366
dict.insert("libs".to_string(), libs.into());

0 commit comments

Comments
 (0)