Skip to content

fix: unblock master CI after #5899 + #5902 regressions - #5910

Merged
oferchen merged 4 commits into
masterfrom
fix/master-clippy-extend-with-drain
Jun 17, 2026
Merged

oferchen merged 4 commits into
masterfrom
fix/master-clippy-extend-with-drain

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

This PR makes the two minimal edits:

  • transfer.rs: replace extend(other.drain(..)) with append(&mut other) — semantically identical, satisfies the lint.
  • ssh_transfer.rs: pass config.delete_excluded() as the new second arg at both call sites.

Test plan

  • Local fmt clean (cargo fmt --all)
  • CI Build + fmt+clippy green on this PR
  • Other 6 open PRs rebased after this lands

PR #5902 introduced a `clippy::extend-with-drain` lint violation in the
nested dir-merge wiring at transfer.rs:187. PR #5899 widened
`build_wire_format_rules` to take a `delete_excluded: bool` parameter
but missed the SSH push/pull call sites in ssh_transfer.rs (E0061).

Both fail the master fmt+clippy and Build cells, blocking every open PR.

- engine/.../transfer.rs: replace `extend(.drain(..))` with `append(&mut)`.
- core/.../ssh_transfer.rs: pass `config.delete_excluded()` at both call sites.
@github-actions github-actions Bot added the bug Something isn't working label Jun 17, 2026
oferchen added 3 commits June 17, 2026 23:57
- transfer test: wrap compile-time invariants in `const _: () = assert!(...)`
- cli verbose test: use `lines.contains(&"only.txt")` over iter().any()
@oferchen
oferchen merged commit 5bc99a0 into master Jun 17, 2026
35 of 65 checks passed
@oferchen
oferchen deleted the fix/master-clippy-extend-with-drain branch June 17, 2026 21:22
oferchen added a commit that referenced this pull request Aug 24, 2026
* fix(engine,core): unblock master CI after #5899 + #5902 regressions

PR #5902 introduced a `clippy::extend-with-drain` lint violation in the
nested dir-merge wiring at transfer.rs:187. PR #5899 widened
`build_wire_format_rules` to take a `delete_excluded: bool` parameter
but missed the SSH push/pull call sites in ssh_transfer.rs (E0061).

Both fail the master fmt+clippy and Build cells, blocking every open PR.

- engine/.../transfer.rs: replace `extend(.drain(..))` with `append(&mut)`.
- core/.../ssh_transfer.rs: pass `config.delete_excluded()` at both call sites.

* fix(core): wire delete_excluded through async_ssh_transport build_*_server_config

* fix(tests): clippy assertions-on-constants + manual-contains lints

- transfer test: wrap compile-time invariants in `const _: () = assert!(...)`
- cli verbose test: use `lines.contains(&"only.txt")` over iter().any()

* fix(tests): convert OsString args to String for find_flag_string helper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant