mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-21 18:25:14 +08:00
Remove unnecessary clone when opening File for debug output
This commit is contained in:
parent
64ed47bf4e
commit
53dc7772eb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user