diff --git a/src/bin/fish.rs b/src/bin/fish.rs index cd1cb1686..dee8927b7 100644 --- a/src/bin/fish.rs +++ b/src/bin/fish.rs @@ -773,7 +773,7 @@ fn throwing_main() -> i32 { .write(true) .truncate(true) .create(true) - .open(debug_path.clone()) + .open(&debug_path) { Ok(dbg_file) => { // Rust sets O_CLOEXEC by default