remove couple of clones

This commit is contained in:
Matthias Krüger
2025-09-05 15:38:01 +02:00
parent c559c4a741
commit 81042523c6
4 changed files with 4 additions and 4 deletions

View File

@@ -318,7 +318,7 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
let (expected, found) = if expected_str == found_str {
(join_path_syms(&expected_abs), join_path_syms(&found_abs))
} else {
(expected_str.clone(), found_str.clone())
(expected_str, found_str)
};
// We've displayed "expected `a::b`, found `a::b`". We add context to