Lints and suggestions for the Nix programming language
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: use an impl trait in Suggestion::new

+1 -1
+1 -1
lib/src/lib.rs
··· 189 189 190 190 impl Suggestion { 191 191 /// Construct a suggestion. 192 - pub fn new<E: Into<SyntaxElement>>(at: TextRange, fix: E) -> Self { 192 + pub fn new(at: TextRange, fix: impl Into<SyntaxElement>) -> Self { 193 193 Self { 194 194 at, 195 195 fix: fix.into(),