]> git.lizzy.rs Git - rust.git/commitdiff
set CodeSuggestion approximate to false. fixes #2429
authorFrederick Zhang <frederick888@tsundere.moe>
Fri, 2 Feb 2018 05:24:32 +0000 (16:24 +1100)
committerFrederick Zhang <frederick888@tsundere.moe>
Fri, 2 Feb 2018 05:24:32 +0000 (16:24 +1100)
clippy_lints/src/utils/mod.rs

index b7f1e7b245456c45c0bc59ace321b7a94947d72c..7cb3e08a116d19b74f7f8185913c519f8f03e9b1 100644 (file)
@@ -648,6 +648,7 @@ pub fn multispan_sugg<I>(db: &mut DiagnosticBuilder, help_msg: String, sugg: I)
         ],
         msg: help_msg,
         show_code_when_inline: true,
+        approximate: false,
     };
     db.suggestions.push(sugg);
 }