From 8a26266f6586f765ebdfbc0304e4976bfff28895 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sat, 16 Nov 2013 11:19:25 -0800 Subject: Change Mut::map to Mut::with --- src/libstd/rt/comm.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libstd/rt') diff --git a/src/libstd/rt/comm.rs b/src/libstd/rt/comm.rs index 077e9ba195b..7441d0d3edc 100644 --- a/src/libstd/rt/comm.rs +++ b/src/libstd/rt/comm.rs @@ -506,7 +506,7 @@ impl GenericPort for Port { impl Peekable for Port { fn peek(&self) -> bool { - self.next.map_mut(|p| p.get_mut_ref().peek()) + self.next.with_mut(|p| p.get_mut_ref().peek()) } } @@ -517,7 +517,7 @@ impl Peekable for Port { impl<'self, T: Send> SelectInner for &'self Port { #[inline] fn optimistic_check(&mut self) -> bool { - do self.next.map_mut |pone| { pone.get_mut_ref().optimistic_check() } + do self.next.with_mut |pone| { pone.get_mut_ref().optimistic_check() } } #[inline] @@ -528,7 +528,7 @@ impl<'self, T: Send> SelectInner for &'self Port { #[inline] fn unblock_from(&mut self) -> bool { - do self.next.map_mut |pone| { pone.get_mut_ref().unblock_from() } + do self.next.with_mut |pone| { pone.get_mut_ref().unblock_from() } } } -- cgit 1.4.1-3-g733a5