Repository navigation
fix ci: drop the now-unused len() accessor - #15
Conversation
Four formatting hunks CI caught (rustc is broken on the authoring Mac): the traversal assert chain, the jt/jf tuple loop, the jump-count assert, and the two golden-target asserts - exactly the forms rustfmt wants, no semantic change.
The traversal-rejection arm used "...'...'.into()" against an impl Into<String> parameter - the target type cannot be inferred (E0283). Pass the &str directly; &str implements Into<String>.
redundant closure -> pass normalise_components directly; drop the .map(String::from) the iterator no longer needs (filter_map already yields String).
The rewritten seccomp test computes length from insns(); the old len() accessor lost its only caller and dead_code denies the build.
Gate review — reviewer: claudeLanes: reviewed by claude
This diff is clippy/rustfmt cleanup only. Walking the semantic changes: filesystem.rs:265 — filesystem.rs:313-316 — One note the diff does settle: sandbox.rs:411-416 — the sandbox.rs:822-843 — the strengthened assertions are pure reflow. No new behavior is introduced anywhere in the diff, so the absence of new tests is correct rather than a gap. Findings: none. The only item worth stating plainly is that the VERDICT: APPROVED VERDICT: APPROVED |
Fourth CI follow-up to #11: the seccomp test rewrite reads
insns()and computes its own length, so the oldcfg(test) fn len()lost its only caller anddead_codedenies the build. Remove it.