]> git.lizzy.rs Git - rust.git/commitdiff
Fix naming convention issue
authorJosef Reinhard Brandl <mail@josefbrandl.de>
Mon, 2 Jul 2018 16:16:36 +0000 (18:16 +0200)
committerJosef Reinhard Brandl <mail@josefbrandl.de>
Mon, 2 Jul 2018 16:16:36 +0000 (18:16 +0200)
src/libcore/future/future_obj.rs

index b42fd2b5bd7a4762ece71d6bac3bebc4af3898fd..86fe9825dedd8a72ecad79bb9a9539329a348524 100644 (file)
@@ -47,7 +47,7 @@ pub fn new<F: UnsafeFutureObj<'a, T> + 'a>(f: F) -> 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)
     }
 }