]> git.lizzy.rs Git - rust.git/commitdiff
Updated code for CI
authorxFrednet <xFrednet@gmail.com>
Fri, 4 Dec 2020 22:05:52 +0000 (22:05 +0000)
committerxFrednet <xFrednet@gmail.com>
Fri, 4 Dec 2020 22:05:52 +0000 (22:05 +0000)
clippy_lints/src/literal_representation.rs

index 3920e5b6e83d14027386aa60b70dfd15921d38e5..87a957a9bd241728bd01fbaedaf06f08ee5836a7 100644 (file)
@@ -244,7 +244,7 @@ pub fn new(lint_fraction_readability: bool) -> Self {
         }
     }
 
-    fn check_lit(&self, cx: &EarlyContext<'_>, lit: &Lit) {
+    fn check_lit(self, cx: &EarlyContext<'_>, lit: &Lit) {
         if_chain! {
             if let Some(src) = snippet_opt(cx, lit.span);
             if let Some(mut num_lit) = NumericLiteral::from_lit(&src, &lit);