From 10811d5d89fc8a40c74c9d34173cccaacdf32ae2 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Thu, 14 Feb 2019 14:01:43 +0100 Subject: [PATCH] Fix breakage from rust-lang/rust#58296 --- clippy_lints/src/utils/mod.rs | 4 ++-- 1 file 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);