Skip to content

vacuum: drop needless borrows flagged by clippy on Rust 1.99 - #29

Open
Imaclean74 wants to merge 1 commit into
zacharydenton:masterfrom
Imaclean74:fix/clippy-1.99-vacuum
Open

Imaclean74 wants to merge 1 commit into
zacharydenton:masterfrom
Imaclean74:fix/clippy-1.99-vacuum

Conversation

@Imaclean74

Copy link
Copy Markdown
Contributor

Since the CI runner moved to Rust 1.99, cargo clippy -- -D warnings fails on master (and therefore on every open PR) with needless_borrows_for_generic_args at src/dom/optimize/vacuum.rs:61:

error: the borrowed expression implements the required traits
  --> src/dom/optimize/vacuum.rs:61:34

is_inline_flank captures only shared references, so the closure is Copy and can be passed to is_some_and by value. No behaviour change.

Checked with Rust 1.99.0: cargo clippy --all-targets -- -D warnings is clean, and cargo fmt --check and cargo test pass.

is_inline_flank captures only shared references, so the closure is Copy
and can be passed to is_some_and by value. Rust 1.99's clippy flags the
borrows (needless_borrows_for_generic_args), failing CI's
`cargo clippy -- -D warnings` on master and every open PR.

This branch has not been deployed

No deployments
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.

1 participant