diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-02-27 20:37:40 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-02-28 12:24:50 -0800 |
| commit | 79e6ab54d13b8a5b8c17093186c39e493784bdc6 (patch) | |
| tree | 68b51fc30c107e2c758fe3faef5f7bb65fa730a0 /src/libnative | |
| parent | d89074c8ae11d52b3b92d73bc684f5b964a05cf5 (diff) | |
std: Avoid using "{:?}" in format strings
This removes all usage of Poly in format strings from libstd. This doesn't prevent more future strings from coming in, but it at least removes the ones for now.
Diffstat (limited to 'src/libnative')
| -rw-r--r-- | src/libnative/io/process.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libnative/io/process.rs b/src/libnative/io/process.rs index 0b833f47395..6ac1f2b3692 100644 --- a/src/libnative/io/process.rs +++ b/src/libnative/io/process.rs @@ -470,7 +470,7 @@ fn spawn_process_os(config: p::ProcessConfig, Err(e) => { assert!(e.kind == io::BrokenPipe || e.kind == io::EndOfFile, - "unexpected error: {:?}", e); + "unexpected error: {}", e); Ok(SpawnProcessResult { pid: pid, handle: ptr::null() @@ -744,7 +744,7 @@ fn waitpid(pid: pid_t) -> p::ProcessExit { let mut status = 0 as c_int; match retry(|| unsafe { wait::waitpid(pid, &mut status, 0) }) { - -1 => fail!("unknown waitpid error: {:?}", super::last_error()), + -1 => fail!("unknown waitpid error: {}", super::last_error()), _ => { if imp::WIFEXITED(status) { p::ExitStatus(imp::WEXITSTATUS(status) as int) |
