Skip to content

Commit ab258f8

Browse files
committed
chore: clippy
1 parent 65c31b2 commit ab258f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_session/src/search_paths.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ impl FilesIndex {
3939
String::from(
4040
&v.file_name_str[prefix.len()..v.file_name_str.len() - suffix.len()],
4141
),
42-
v.clone(),
42+
Arc::clone(v),
4343
)
4444
})
4545
})
@@ -139,7 +139,7 @@ impl SearchPath {
139139
e.file_name().to_str().map(|s| {
140140
let file_name_str: Arc<str> = s.into();
141141
(
142-
file_name_str.clone(),
142+
Arc::clone(&file_name_str),
143143
Arc::new(SearchPathFile { path: e.path().into(), file_name_str }),
144144
)
145145
})

0 commit comments

Comments
 (0)