diff options
| author | Vitaly _Vi Shukela <vi0oss@gmail.com> | 2018-09-17 02:40:44 +0300 |
|---|---|---|
| committer | Vitaly _Vi Shukela <vi0oss@gmail.com> | 2018-09-17 02:49:27 +0300 |
| commit | 6ebb9161ea3d0e865786ef14878be8e4c07ab790 (patch) | |
| tree | e5f87aae8b1f00243de5df9f063991c2223fcd77 /src/librustc_errors | |
| parent | f395072c4d7368831698bfc8ddc6a928fd8230c7 (diff) | |
| download | rust-6ebb9161ea3d0e865786ef14878be8e4c07ab790.tar.gz rust-6ebb9161ea3d0e865786ef14878be8e4c07ab790.zip | |
Fix style according to review comments.
Diffstat (limited to 'src/librustc_errors')
| -rw-r--r-- | src/librustc_errors/diagnostic.rs | 8 | ||||
| -rw-r--r-- | src/librustc_errors/diagnostic_builder.rs | 7 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/librustc_errors/diagnostic.rs b/src/librustc_errors/diagnostic.rs index b7d81efe962..f7e5e25c837 100644 --- a/src/librustc_errors/diagnostic.rs +++ b/src/librustc_errors/diagnostic.rs @@ -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. diff --git a/src/librustc_errors/diagnostic_builder.rs b/src/librustc_errors/diagnostic_builder.rs index 4287b37ac54..d1b6865e59b 100644 --- a/src/librustc_errors/diagnostic_builder.rs +++ b/src/librustc_errors/diagnostic_builder.rs @@ -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); |
