diff options
| author | Mason Reed <mason@vector35.com> | 2026-02-17 20:30:44 -0800 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2026-02-23 00:09:44 -0800 |
| commit | 65c217ae27e6b0abe26d5baea40f2bab695a3651 (patch) | |
| tree | 162800e27c5dbe95eb187522b69dec936b4118bf /plugins/bntl_utils/src/merge.rs | |
| parent | 37008b7fa16837d04c1658868646cad681cbe035 (diff) | |
[BNTL Utils] Fix misc clippy lints
Diffstat (limited to 'plugins/bntl_utils/src/merge.rs')
| -rw-r--r-- | plugins/bntl_utils/src/merge.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/bntl_utils/src/merge.rs b/plugins/bntl_utils/src/merge.rs index 454be10f..0a3b3377 100644 --- a/plugins/bntl_utils/src/merge.rs +++ b/plugins/bntl_utils/src/merge.rs @@ -101,12 +101,11 @@ fn merge_structures(s1: &Structure, s2: &Structure) -> Option<Ref<Structure>> { for m in &s.members() { members .entry(m.offset) - .and_modify(|(existing_name, existing_ty)| { + .and_modify(|(_existing_name, existing_ty)| { // Update type if merge succeeds if let Some(merged) = merge_recursive(existing_ty, &m.ty.contents) { *existing_ty = merged; } - // Name collision: Keep existing (s1/first wins), ignoring m.name }) .or_insert_with(|| (m.name.clone(), m.ty.contents.to_owned())); } |
