diff options
| author | flip1995 <hello@philkrones.com> | 2019-02-14 14:01:43 +0100 |
|---|---|---|
| committer | flip1995 <hello@philkrones.com> | 2019-02-14 14:01:43 +0100 |
| commit | 10811d5d89fc8a40c74c9d34173cccaacdf32ae2 (patch) | |
| tree | b4498b7883add3548c588674cc43ddd721e3f383 | |
| parent | 533dd360d79dc06ba857e702a4362d8aa272cdd4 (diff) | |
| download | rust-10811d5d89fc8a40c74c9d34173cccaacdf32ae2.tar.gz rust-10811d5d89fc8a40c74c9d34173cccaacdf32ae2.zip | |
Fix breakage from rust-lang/rust#58296
| -rw-r--r-- | clippy_lints/src/utils/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/utils/mod.rs b/clippy_lints/src/utils/mod.rs index b5221bca007..0816c209a42 100644 --- a/clippy_lints/src/utils/mod.rs +++ b/clippy_lints/src/utils/mod.rs @@ -17,7 +17,7 @@ use rustc::ty::{ Binder, Ty, TyCtxt, }; use rustc_data_structures::sync::Lrc; -use rustc_errors::{Applicability, CodeSuggestion, Substitution, SubstitutionPart}; +use rustc_errors::{Applicability, CodeSuggestion, Substitution, SubstitutionPart, SuggestionStyle}; use std::borrow::Cow; use std::env; use std::mem; @@ -745,7 +745,7 @@ where .collect(), }], msg: help_msg, - show_code_when_inline: true, + style: SuggestionStyle::ShowCode, applicability: Applicability::Unspecified, }; db.suggestions.push(sugg); |
