Skip to content

Commit d1d9cde

Browse files
committed
cargo clippy --fix
1 parent bdfcfe0 commit d1d9cde

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/hir-ty/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ pub(crate) fn detect_variant_from_bytes<'a>(
440440
(db.enum_data(e).variants[index.0].0, layout)
441441
}
442442
hir_def::layout::Variants::Multiple { tag, tag_encoding, variants, .. } => {
443-
let size = tag.size(&*target_data_layout).bytes_usize();
443+
let size = tag.size(target_data_layout).bytes_usize();
444444
let offset = layout.fields.offset(0).bytes_usize(); // The only field on enum variants is the tag field
445445
let tag = i128::from_le_bytes(pad16(&b[offset..offset + size], false));
446446
match tag_encoding {

crates/ide-db/src/imports/merge_imports.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ fn recursive_normalize(use_tree: &ast::UseTree, style: NormalizationStyle) -> Op
468468
ted::replace_all(start..=end, elements);
469469
} else {
470470
let new_use_tree_list =
471-
make::use_tree_list(subtrees.into_iter()).clone_for_update();
471+
make::use_tree_list(subtrees).clone_for_update();
472472
ted::replace(use_tree_list.syntax(), new_use_tree_list.syntax());
473473
}
474474
modified = true;

0 commit comments

Comments
 (0)