Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6091426

Browse filesBrowse files
committed
formatting
1 parent 8e10ba7 commit 6091426
Copy full SHA for 6091426

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎vm/src/stdlib/sys.rs

Copy file name to clipboardExpand all lines: vm/src/stdlib/sys.rs
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.