]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_lint/src/levels.rs
Auto merge of #92664 - ehuss:rollup-t9yrvk5, r=ehuss
[rust.git] / compiler / rustc_lint / src / levels.rs
index 485728cbfd39d3e0ff85141702d6d0aae1d8dcc9..d3fa08650d8740937c6b132553831cf5133b5dae 100644 (file)
@@ -154,7 +154,7 @@ fn insert_spec(
                         LintLevelSource::Node(_, forbid_source_span, reason) => {
                             diag_builder.span_label(forbid_source_span, "`forbid` level set here");
                             if let Some(rationale) = reason {
-                                diag_builder.note(&rationale.as_str());
+                                diag_builder.note(rationale.as_str());
                             }
                         }
                         LintLevelSource::CommandLine(_, _) => {