1
Fork 0

Fix style according to review comments.

This commit is contained in:
Vitaly _Vi Shukela 2018-09-17 02:40:44 +03:00
parent f395072c4d
commit 6ebb9161ea
No known key found for this signature in database
GPG key ID: C097221D6E03DF68
6 changed files with 36 additions and 20 deletions

View file

@ -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.

View file

@ -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);