mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-15 02:09:36 +00:00
cargo clippy --fix
This commit is contained in:
parent
1ab8c7fd27
commit
fad4fa163c
178 changed files with 595 additions and 738 deletions
|
|
@ -117,7 +117,7 @@ pub fn filter_assoc_items(
|
|||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
true
|
||||
})
|
||||
// Note: This throws away items with no source.
|
||||
.filter_map(|assoc_item| {
|
||||
|
|
@ -165,7 +165,7 @@ pub fn add_trait_assoc_items_to_impl(
|
|||
target_scope: hir::SemanticsScope<'_>,
|
||||
) -> ast::AssocItem {
|
||||
let new_indent_level = IndentLevel::from_node(impl_.syntax()) + 1;
|
||||
let items = original_items.into_iter().map(|InFile { file_id, value: original_item }| {
|
||||
let items = original_items.iter().map(|InFile { file_id, value: original_item }| {
|
||||
let cloned_item = {
|
||||
if file_id.is_macro() {
|
||||
if let Some(formatted) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue