8000 formatting · RustPython/RustPython@6091426 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6091426

Browse files
committed
formatting
1 parent 8e10ba7 commit 6091426

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vm/src/stdlib/sys.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ mod sys {
316316
let mut source = String::new();
317317
handle
318318
.read_to_string(&mut source)
319-
.map_err(|e| vm.new_os_error(format!("Error reading from stdin: {}", e.to_string())))?;
319+
.map_err(|e| vm.new_os_error(format!("Error reading from stdin: {}", e)))?;
320320
vm.compile(&source, crate::compiler::Mode::Single, "<stdin>".to_owned())
321-
.map_err(|e| vm.new_os_error(format!("Error running stdin: {}", e.to_string())))?;
321+
.map_err(|e| vm.new_os_error(format!("Error running stdin: {}", e)))?;
322322
Ok(())
323323
}
324324

0 commit comments

Comments
 (0)
0