]> git.lizzy.rs Git - rust.git/commitdiff
Set show_code_when_inline to true
authorMatt Kraai <kraai@ftbfs.org>
Mon, 24 Jul 2017 13:37:12 +0000 (06:37 -0700)
committerMatt Kraai <kraai@ftbfs.org>
Mon, 24 Jul 2017 13:37:12 +0000 (06:37 -0700)
Fixes #1902

clippy_lints/src/utils/mod.rs

index 5b53d6dbea7f177b0df773f2ff58aa377dd0a2fc..e8e11e37a5cd0a6bae5b08243e4b1b7644f34511 100644 (file)
@@ -584,6 +584,7 @@ pub fn multispan_sugg(db: &mut DiagnosticBuilder, help_msg: String, sugg: Vec<(S
             })
             .collect(),
         msg: help_msg,
+        show_code_when_inline: true,
     };
     db.suggestions.push(sugg);
 }