diff --git a/reverie-examples/chaos.rs b/reverie-examples/chaos.rs index 1ce3425..8c2086b 100644 --- a/reverie-examples/chaos.rs +++ b/reverie-examples/chaos.rs @@ -111,6 +111,7 @@ impl Tool for ChaosTool { syscall.display(&memory), ); + #[allow(unreachable_code)] return guest.tail_inject(syscall).await; } @@ -153,6 +154,7 @@ impl Tool for ChaosTool { count, syscall.display(&memory), ); + #[allow(unreachable_code)] return guest.tail_inject(x).await; } }; diff --git a/reverie-examples/chunky_print.rs b/reverie-examples/chunky_print.rs index d57732b..16ce736 100644 --- a/reverie-examples/chunky_print.rs +++ b/reverie-examples/chunky_print.rs @@ -227,6 +227,7 @@ impl Tool for ChunkyPrintLocal { " [chunky_print] letting through write on redirected stdout, {} bytes.", w.len() ); + #[allow(unreachable_code)] return guest.tail_inject(call).await; } Which::Stdout @@ -236,6 +237,7 @@ impl Tool for ChunkyPrintLocal { " [chunky_print] letting through write on redirected stderr, {} bytes.", w.len() ); + #[allow(unreachable_code)] return guest.tail_inject(call).await; } Which::Stderr diff --git a/reverie-ptrace/src/task.rs b/reverie-ptrace/src/task.rs index 1850df0..1157421 100644 --- a/reverie-ptrace/src/task.rs +++ b/reverie-ptrace/src/task.rs @@ -1548,6 +1548,7 @@ impl TracedTask { ); } Wait::Exited(_pid, exit_status) => { + #[allow(unreachable_code)] break self.exit(exit_status).await; } }