Merge pull request #1051 from bugadani/clone

Don't clone paths when collecting diag items
This commit is contained in:
Dongdong Zhou 2022-09-05 21:37:15 +01:00 committed by GitHub
commit 712caa64ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2237,7 +2237,7 @@ pub fn diagnostics_items(
None
}
})
.sorted_by_key(|(path, _)| (*path).clone())
.sorted_by_key(|(path, _)| *path)
.collect()
}