mirror of
https://github.com/rwf2/Rocket.git
synced 2025-02-16 21:52:08 +00:00
Move lint note message to correct spot.
This commit is contained in:
parent
391628dea9
commit
d23a0fa80a
@ -174,10 +174,10 @@ pub fn msg_and_help<'a, T: LintContext<'a>>(cx: &T,
|
||||
help_sp: Option<Span>,
|
||||
help: &str) {
|
||||
let mut b = cx.struct_span_lint(lint, msg_sp, msg);
|
||||
b.note(note);
|
||||
if let Some(span) = help_sp {
|
||||
b.span_help(span, help);
|
||||
}
|
||||
|
||||
b.note(note);
|
||||
b.emit();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user