]> git.lizzy.rs Git - rust.git/commitdiff
Remove useless derives on `GenFuture`
authorJonas Schievink <jonasschievink@gmail.com>
Tue, 11 Feb 2020 10:51:58 +0000 (11:51 +0100)
committerJonas Schievink <jonasschievink@gmail.com>
Tue, 17 Mar 2020 21:17:31 +0000 (22:17 +0100)
Not sure why these were there, I guess because this type used
to kind of be part of public API?

src/libcore/future/mod.rs

index 9dcb2cea2ea716fec3fe90ebae734db9466143e4..e808f9d2f10245db5ec8fa002ac7addc9078529e 100644 (file)
@@ -49,7 +49,6 @@ pub const fn from_generator<T>(gen: T) -> impl Future<Output = T::Return>
 where
     T: Generator<ResumeTy, Yield = ()>,
 {
-    #[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
     struct GenFuture<T: Generator<ResumeTy, Yield = ()>>(T);
 
     // We rely on the fact that async/await futures are immovable in order to create