diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-13 01:17:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-13 01:17:10 +0100 |
| commit | 4069792d732288d030f5485614e2c58297ce5564 (patch) | |
| tree | 171069ee9d01195d551762109234b2dd6f128a14 /compiler/rustc_builtin_macros/src/concat_bytes.rs | |
| parent | 8917cc0f23f97e42e652f9130b7daa6a48193cef (diff) | |
| parent | ee40a67cd9283a9e8b0de87926581456252c6c9f (diff) | |
| download | rust-4069792d732288d030f5485614e2c58297ce5564.tar.gz rust-4069792d732288d030f5485614e2c58297ce5564.zip | |
Rollup merge of #105620 - TaKO8Ki:remove-unnecessary-uses-of-clone, r=compiler-errors
Remove unnecessary uses of `clone`
Diffstat (limited to 'compiler/rustc_builtin_macros/src/concat_bytes.rs')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/concat_bytes.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/concat_bytes.rs b/compiler/rustc_builtin_macros/src/concat_bytes.rs index 4c424ea430b..4f1a7d709ff 100644 --- a/compiler/rustc_builtin_macros/src/concat_bytes.rs +++ b/compiler/rustc_builtin_macros/src/concat_bytes.rs @@ -196,7 +196,7 @@ pub fn expand_concat_bytes( } } if !missing_literals.is_empty() { - let mut err = cx.struct_span_err(missing_literals.clone(), "expected a byte literal"); + let mut err = cx.struct_span_err(missing_literals, "expected a byte literal"); err.note("only byte literals (like `b\"foo\"`, `b's'`, and `[3, 4, 5]`) can be passed to `concat_bytes!()`"); err.emit(); return base::MacEager::expr(DummyResult::raw_expr(sp, true)); |
