]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_errors/src/annotate_snippet_emitter_writer.rs
Rollup merge of #105224 - cjgillot:issue-104240, r=compiler-errors
[rust.git] / compiler / rustc_errors / src / annotate_snippet_emitter_writer.rs
index c450c276366e156220e09c14077eb72c23e4727b..d8879bf70ed39730ee41f5029b51f096b17278b2 100644 (file)
@@ -39,7 +39,7 @@ fn fluent_bundle(&self) -> Option<&Lrc<FluentBundle>> {
     }
 
     fn fallback_fluent_bundle(&self) -> &FluentBundle {
-        &**self.fallback_bundle
+        &self.fallback_bundle
     }
 }
 
@@ -49,7 +49,7 @@ fn emit_diagnostic(&mut self, diag: &Diagnostic) {
         let fluent_args = to_fluent_args(diag.args());
 
         let mut children = diag.children.clone();
-        let (mut primary_span, suggestions) = self.primary_span_formatted(&diag, &fluent_args);
+        let (mut primary_span, suggestions) = self.primary_span_formatted(diag, &fluent_args);
 
         self.fix_multispans_in_extern_macros_and_render_macro_backtrace(
             &mut primary_span,
@@ -65,7 +65,7 @@ fn emit_diagnostic(&mut self, diag: &Diagnostic) {
             &diag.code,
             &primary_span,
             &children,
-            &suggestions,
+            suggestions,
         );
     }