avoid converting types into themselves via .into() (clippy::useless-conversion)
example: let x: String = String::from("hello world").into();
This commit is contained in:
@@ -80,7 +80,7 @@ impl ImportScope {
|
||||
})
|
||||
.last()
|
||||
.map(|last_inner_element| {
|
||||
(InsertPosition::After(last_inner_element.into()), AddBlankLine::BeforeTwice)
|
||||
(InsertPosition::After(last_inner_element), AddBlankLine::BeforeTwice)
|
||||
})
|
||||
.unwrap_or_else(|| self.first_insert_pos())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user