Skip to content

Commit 3b8e804

Browse files
committed
Remove an unnecessary local variable.
1 parent 3754420 commit 3b8e804

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_errors/src

1 file changed

+1
-2
lines changed

compiler/rustc_errors/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,8 +1055,7 @@ impl Handler {
10551055

10561056
#[rustc_lint_diagnostics]
10571057
pub fn warn(&self, msg: impl Into<DiagnosticMessage>) {
1058-
let mut db = DiagnosticBuilder::new(self, Warning(None), msg);
1059-
db.emit();
1058+
DiagnosticBuilder::new(self, Warning(None), msg).emit();
10601059
}
10611060

10621061
#[rustc_lint_diagnostics]

0 commit comments

Comments
 (0)