Skip to content

Commit 6d99d9c

Browse files
osiewiczsaethlin
andauthored
Update compiler/rustc_session/src/search_paths.rs
Co-authored-by: Ben Kimock <kimockb@gmail.com>
1 parent b96b61b commit 6d99d9c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_session/src/search_paths.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ impl FilesIndex {
2727
) -> Option<impl Iterator<Item = (String, &'this SearchPathFile)> + use<'this, 'prefix, 'suffix>>
2828
{
2929
let start = self.0.partition_point(|(k, _)| {
30-
let k: &str = &k;
31-
k < prefix
30+
**k < *prefix
3231
});
3332
if start == self.0.len() {
3433
return None;

0 commit comments

Comments
 (0)