Updated code for CI

This commit is contained in:
xFrednet 2020-12-04 22:05:52 +00:00
parent 6edd598856
commit 18383c69c1

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