Skip to content

Commit 2beddd0

Browse files
committed
Fix: Replace pop_undo with pop_redo and convert Path to &str in fuzz_state_machine.rs
1 parent 97a0ed1 commit 2beddd0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fuzz_target!(|data: &[u8]| {
5151
Err(_) => return,
5252
};
5353

54-
let mut state = match ShellState::new(temp.path()) {
54+
let mut state = match ShellState::new(temp.path().to_str().unwrap()) {
5555
Ok(s) => s,
5656
Err(_) => return,
5757
};
@@ -75,7 +75,7 @@ fuzz_target!(|data: &[u8]| {
7575
let _ = rm(&mut state, &target, true);
7676
}
7777
Action::Undo => {
78-
let _ = state.pop_undo();
78+
let _ = state.pop_redo();
7979
}
8080
Action::Redo => {
8181
let _ = state.pop_redo();
@@ -95,7 +95,7 @@ fuzz_target!(|data: &[u8]| {
9595
.map(|e| e.count())
9696
.unwrap_or(0);
9797

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

0 commit comments

Comments
 (0)