From 9eee0d2288c067be081f2ca35f5b2d3cfc95fcf2 Mon Sep 17 00:00:00 2001 From: Josef Reinhard Brandl Date: Mon, 2 Jul 2018 18:16:36 +0200 Subject: [PATCH] Fix naming convention issue --- src/libcore/future/future_obj.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/future/future_obj.rs b/src/libcore/future/future_obj.rs index b42fd2b5bd7..86fe9825ded 100644 --- a/src/libcore/future/future_obj.rs +++ b/src/libcore/future/future_obj.rs @@ -47,7 +47,7 @@ impl<'a, T> LocalFutureObj<'a, T> { /// instance from which this `LocalFutureObj` was created actually /// implements `Send`. #[inline] - pub unsafe fn as_future_obj(self) -> FutureObj<'a, T> { + pub unsafe fn into_future_obj(self) -> FutureObj<'a, T> { FutureObj(self) } }