Skip to content

remove #[must_use] from and_modify #147

Merged
jneem merged 1 commit into
jneem:mainfrom
cameronbraid:patch-1
Jan 8, 2026
Merged

remove #[must_use] from and_modify #147
jneem merged 1 commit into
jneem:mainfrom
cameronbraid:patch-1

Conversation

@cameronbraid

Copy link
Copy Markdown
Contributor

No description provided.

@cameronbraid cameronbraid left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the must_use is unneeded, since the mutation happens via a closure

            self.one_index
                .entry(one_key.clone())
                .and_modify(|v| v.retain(|(_, i)| i != id));

@jneem jneem left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jneem jneem merged commit ed416bd into jneem:main Jan 8, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants