Repository navigation
chore: fix master fmt + clippy hygiene - #5728
Merged
Merged
Conversation
Master CI broke on rustfmt 1.88 and clippy 1.88:
1. `crates/cli/src/frontend/server/run.rs:244` - `use fast_io::landlock::{...}`
collapses to a single line under rustfmt 1.88 (introduced by PR #5724's
landlock wire-in).
2. `crates/transfer/src/generator/filters.rs:589` - `let split = ...` long-form
collapses to single-line under rustfmt 1.88.
3. `crates/transfer/src/generator/file_list/mod.rs:267` - rewrite
`filter_map(|(b, rel)| (b == &entry.base).then(|| rel.clone()))` as the
equivalent `filter(...).map(...)` pair so clippy 1.88's new
`filter_map_bool_then` lint stays clean. Behaviour-identical.
Unblocks PRs #5725, #5726, #5727 once they rebase onto this.
In .filter(), the destructured 'b' is already &PathBuf since iter() yields &(PathBuf, PathBuf) and filter receives &Self::Item. The extra deref made it PathBuf, causing E0277 'can't compare PathBuf with &PathBuf'.
uninlined_format_args lint denies the build under clippy 1.88.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
* chore: fix master fmt drift + filter_map_bool_then clippy lint
Master CI broke on rustfmt 1.88 and clippy 1.88:
1. `crates/cli/src/frontend/server/run.rs:244` - `use fast_io::landlock::{...}`
collapses to a single line under rustfmt 1.88 (introduced by PR #5724's
landlock wire-in).
2. `crates/transfer/src/generator/filters.rs:589` - `let split = ...` long-form
collapses to single-line under rustfmt 1.88.
3. `crates/transfer/src/generator/file_list/mod.rs:267` - rewrite
`filter_map(|(b, rel)| (b == &entry.base).then(|| rel.clone()))` as the
equivalent `filter(...).map(...)` pair so clippy 1.88's new
`filter_map_bool_then` lint stays clean. Behaviour-identical.
Unblocks PRs #5725, #5726, #5727 once they rebase onto this.
* fix: drop extraneous deref in filter predicate
In .filter(), the destructured 'b' is already &PathBuf since iter() yields
&(PathBuf, PathBuf) and filter receives &Self::Item. The extra deref made it
PathBuf, causing E0277 'can't compare PathBuf with &PathBuf'.
* chore(cli): inline format args in --partial-dir test (clippy 1.88)
uninlined_format_args lint denies the build under clippy 1.88.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Master CI is failing fmt+clippy on multiple PRs because of three drifts:
Test plan