From 2862845645e676ab5fbfff916fef4681d9bfb119 Mon Sep 17 00:00:00 2001 From: Aviv Palivoda Date: Fri, 29 May 2020 19:56:32 +0300 Subject: [PATCH] Fix clippy warning --- vm/src/stdlib/io.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/src/stdlib/io.rs b/vm/src/stdlib/io.rs index 49231ad794..469d2b30fc 100644 --- a/vm/src/stdlib/io.rs +++ b/vm/src/stdlib/io.rs @@ -605,7 +605,7 @@ mod fileio { let mode = args .mode .map(|mode| mode.as_str().to_owned()) - .unwrap_or("r".to_owned()); + .unwrap_or_else(|| "r".to_owned()); let (name, file_no) = match args.name { Either::A(name) => { if !args.closefd {