We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e10ba7 commit 6091426Copy full SHA for 6091426
vm/src/stdlib/sys.rs
@@ -316,9 +316,9 @@ mod sys {
316
let mut source = String::new();
317
handle
318
.read_to_string(&mut source)
319
- .map_err(|e| vm.new_os_error(format!("Error reading from stdin: {}", e.to_string())))?;
+ .map_err(|e| vm.new_os_error(format!("Error reading from stdin: {}", e)))?;
320
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())))?;
+ .map_err(|e| vm.new_os_error(format!("Error running stdin: {}", e)))?;
322
Ok(())
323
}
324
0 commit comments