cargo clippy --fix

This commit is contained in:
Johann Hemmann 2024-01-18 13:59:49 +01:00
parent 1ab8c7fd27
commit fad4fa163c
178 changed files with 595 additions and 738 deletions

View file

@ -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) =