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