Skip to content

Commit bb0049b

Browse files
author
Virgil Palanciuc
committed
fixed tidy error
1 parent 304c8b1 commit bb0049b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/session/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ impl Session {
367367
do_method()
368368
},
369369
_ => {
370-
let lint_id = lint::LintId::of(lint);
371-
let id_span_message = (DiagnosticMessageId::LintId(lint_id), span, message.to_owned());
370+
let lint_id = DiagnosticMessageId::LintId(lint::LintId::of(lint));
371+
let id_span_message = (lint_id, span, message.to_owned());
372372
let fresh = self.one_time_diagnostics.borrow_mut().insert(id_span_message);
373373
if fresh {
374374
do_method()

0 commit comments

Comments
 (0)