Fix clippy warning

This commit is contained in:
Aviv Palivoda
2020-05-29 19:56:32 +03:00
parent 3b03674170
commit 2862845645

View File

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