From 1eca34de7dd55719cd83153994e5caf2027f62a2 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 20 Nov 2013 14:17:12 -0800 Subject: libstd: Remove all non-`proc` uses of `do` from libstd --- src/libstd/path/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/libstd/path') diff --git a/src/libstd/path/mod.rs b/src/libstd/path/mod.rs index f58db55d4c5..2b6009206ac 100644 --- a/src/libstd/path/mod.rs +++ b/src/libstd/path/mod.rs @@ -530,9 +530,7 @@ pub struct Display<'self, P> { impl<'self, P: GenericPath> fmt::Default for Display<'self, P> { fn fmt(d: &Display

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