Skip to content

Commit ec55ef9

Browse files
committed
ci(fuzz): fix stale fuzz target (pop_redo returns Option, not Result)
With the cargo-fuzz install fixed, the fuzz build now reaches target compilation and fails: fuzz_state_machine.rs called .is_ok() on state.pop_redo(), which returns Option<Operation> (E0599). Changed to .is_some(). Verified locally: `cargo check --manifest-path impl/rust-cli/fuzz/Cargo.toml` now compiles all fuzz targets clean (was: E0599). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KfgJznd6jzSeDYsSXGAXkU
1 parent fa00b1c commit ec55ef9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

impl/rust-cli/fuzz/fuzz_targets/fuzz_state_machine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fuzz_target!(|data: &[u8]| {
9595
.map(|e| e.count())
9696
.unwrap_or(0);
9797

98-
while state.pop_redo().is_ok() {
98+
while state.pop_redo().is_some() {
9999
// Keep undoing
100100
}
101101

0 commit comments

Comments
 (0)