diff options
Diffstat (limited to 'runtime/ops/fs.rs')
-rw-r--r-- | runtime/ops/fs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ops/fs.rs b/runtime/ops/fs.rs index a3ed09371..12665ab04 100644 --- a/runtime/ops/fs.rs +++ b/runtime/ops/fs.rs @@ -211,7 +211,7 @@ async fn op_open_async( "Deno.open()", )?; let std_file = tokio::task::spawn_blocking(move || { - open_options.open(path.clone()).map_err(|err| { + open_options.open(&path).map_err(|err| { Error::new(err.kind(), format!("{}, open '{}'", err, path.display())) }) }) |