diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-09-05 15:38:01 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2025-09-05 15:38:01 +0200 |
| commit | 81042523c6e1ae50682f46ae3da4ede22bfd596e (patch) | |
| tree | 32a0ef63f86fae2ddb00f902206521b684e8e753 /compiler/rustc_trait_selection | |
| parent | c559c4a741836c4ffa8e4f60cb9fe7e92af5298e (diff) | |
| download | rust-81042523c6e1ae50682f46ae3da4ede22bfd596e.tar.gz rust-81042523c6e1ae50682f46ae3da4ede22bfd596e.zip | |
remove couple of clones
Diffstat (limited to 'compiler/rustc_trait_selection')
| -rw-r--r-- | compiler/rustc_trait_selection/src/error_reporting/infer/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/error_reporting/infer/mod.rs b/compiler/rustc_trait_selection/src/error_reporting/infer/mod.rs index 9447612d026..812e20e4338 100644 --- a/compiler/rustc_trait_selection/src/error_reporting/infer/mod.rs +++ b/compiler/rustc_trait_selection/src/error_reporting/infer/mod.rs @@ -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 |
