1
Fork 0

core: Update all tests for fmt movement

This commit is contained in:
Alex Crichton 2014-05-11 11:14:14 -07:00
parent d12a136b22
commit 2e2160b026
27 changed files with 277 additions and 161 deletions

View file

@ -308,9 +308,9 @@ impl fmt::Show for Command {
/// non-utf8 data is lossily converted using the utf8 replacement
/// character.
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
try!(write!(f.buf, "{}", str::from_utf8_lossy(self.program.as_bytes_no_nul())));
try!(write!(f, "{}", str::from_utf8_lossy(self.program.as_bytes_no_nul())));
for arg in self.args.iter() {
try!(write!(f.buf, " '{}'", str::from_utf8_lossy(arg.as_bytes_no_nul())));
try!(write!(f, " '{}'", str::from_utf8_lossy(arg.as_bytes_no_nul())));
}
Ok(())
}