mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Fix clippy warning
This commit is contained in:
1 parent
3b03674170
commit
2862845645
1 file changed
+1
-1
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user