From ece8a8f520697be50cbe543bebe065c5198dae4d Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 29 Jan 2014 16:33:57 -0800 Subject: std: Remove io::io_error * All I/O now returns IoResult = Result * All formatting traits now return fmt::Result = IoResult<()> * The if_ok!() macro was added to libstd --- src/libstd/path/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/path') diff --git a/src/libstd/path/mod.rs b/src/libstd/path/mod.rs index 86f96a1075b..190cf5745f4 100644 --- a/src/libstd/path/mod.rs +++ b/src/libstd/path/mod.rs @@ -533,7 +533,7 @@ pub struct Display<'a, P> { } impl<'a, P: GenericPath> fmt::Show for Display<'a, P> { - fn fmt(d: &Display

, f: &mut fmt::Formatter) { + fn fmt(d: &Display

, f: &mut fmt::Formatter) -> fmt::Display { d.with_str(|s| f.pad(s)) } } -- cgit 1.4.1-3-g733a5