Remove an unnecessary local variable.
This commit is contained in:
parent
b2a856ea3c
commit
95be8b2189
1 changed files with 1 additions and 2 deletions
|
@ -1055,8 +1055,7 @@ impl Handler {
|
||||||
|
|
||||||
#[rustc_lint_diagnostics]
|
#[rustc_lint_diagnostics]
|
||||||
pub fn warn(&self, msg: impl Into<DiagnosticMessage>) {
|
pub fn warn(&self, msg: impl Into<DiagnosticMessage>) {
|
||||||
let mut db = DiagnosticBuilder::new(self, Warning(None), msg);
|
DiagnosticBuilder::new(self, Warning(None), msg).emit();
|
||||||
db.emit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[rustc_lint_diagnostics]
|
#[rustc_lint_diagnostics]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue