From 1748d5f1546d2160ec8f949a56081403a3f9df62 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 31 Oct 2021 14:35:58 +0530 Subject: begin writing explainations --- lib/src/lints/collapsible_let_in.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/src/lints/collapsible_let_in.rs') diff --git a/lib/src/lints/collapsible_let_in.rs b/lib/src/lints/collapsible_let_in.rs index 878d218..cb76c37 100644 --- a/lib/src/lints/collapsible_let_in.rs +++ b/lib/src/lints/collapsible_let_in.rs @@ -1,12 +1,12 @@ -use crate::{make, Lint, Metadata, Report, Rule, Suggestion}; +use crate::{make, Metadata, Report, Rule, Suggestion}; use if_chain::if_chain; use macros::lint; -use rowan::Direction; use rnix::{ types::{LetIn, TypedNode}, - NodeOrToken, SyntaxElement, SyntaxKind, TextRange + NodeOrToken, SyntaxElement, SyntaxKind, TextRange, }; +use rowan::Direction; #[lint( name = "collapsible let in", @@ -47,7 +47,7 @@ impl Rule for CollapsibleLetIn { let replacement = make::empty().node().clone(); Some( - Self::report() + self.report() .diagnostic(first_annotation, first_message) .suggest(second_annotation, second_message, Suggestion::new(replacement_at, replacement)) ) @@ -57,4 +57,3 @@ impl Rule for CollapsibleLetIn { } } } - -- cgit v1.2.3