Fix style according to review comments.
This commit is contained in:
parent
f395072c4d
commit
6ebb9161ea
6 changed files with 36 additions and 20 deletions
|
@ -307,10 +307,10 @@ impl Diagnostic {
|
|||
suggestion: Vec<(Span, String)>,
|
||||
) -> &mut Self {
|
||||
self.multipart_suggestion_with_applicability(
|
||||
msg,
|
||||
suggestion,
|
||||
Applicability::Unspecified
|
||||
)
|
||||
msg,
|
||||
suggestion,
|
||||
Applicability::Unspecified,
|
||||
)
|
||||
}
|
||||
|
||||
/// Prints out a message with multiple suggested edits of the code.
|
||||
|
|
|
@ -172,9 +172,10 @@ impl<'a> DiagnosticBuilder<'a> {
|
|||
-> &mut Self);
|
||||
|
||||
#[deprecated(note = "Use `span_suggestion_short_with_applicability`")]
|
||||
forward!(pub fn span_suggestion_short(&mut self,
|
||||
sp: Span,
|
||||
msg: &str,
|
||||
forward!(pub fn span_suggestion_short(
|
||||
&mut self,
|
||||
sp: Span,
|
||||
msg: &str,
|
||||
suggestion: String)
|
||||
-> &mut Self);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue