From f1f6c1286f24f6f762a9b195ac678b55d20c9a9b Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 20 Nov 2014 09:23:43 -0800 Subject: Rename unwrap functions to into_inner This change applies the conventions to unwrap listed in [RFC 430][rfc] to rename non-failing `unwrap` methods to `into_inner`. This is a breaking change, but all `unwrap` methods are retained as `#[deprecated]` for the near future. To update code rename `unwrap` method calls to `into_inner`. [rfc]: https://github.com/rust-lang/rfcs/pull/430 [breaking-change] Closes #13159 cc #19091 --- src/libstd/task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/task.rs') diff --git a/src/libstd/task.rs b/src/libstd/task.rs index 4f5f47e980c..c852b4efbd8 100644 --- a/src/libstd/task.rs +++ b/src/libstd/task.rs @@ -197,7 +197,7 @@ impl TaskBuilder { /// completes or panics. Equivalent to `.try_future(f).unwrap()`. #[unstable = "Error type may change."] pub fn try(self, f: proc():Send -> T) -> Result> { - self.try_future(f).unwrap() + self.try_future(f).into_inner() } } -- cgit 1.4.1-3-g733a5