Remove unnecessary clone when opening File for debug output

This commit is contained in:
Erick Howard 2025-01-01 15:07:16 +08:00 committed by Johannes Altmanninger
parent 64ed47bf4e
commit 53dc7772eb

View file

@ -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