commit | a1f5e188cc5128ca805220a30fbe04fc2c2af9d5 | [log] [tgz] |
---|---|---|
author | Nathan West <Lucretiel@users.noreply.github.com> | Fri Apr 03 20:24:43 2020 -0400 |
committer | GitHub <noreply@github.com> | Fri Apr 03 20:24:43 2020 -0400 |
tree | bba96bbdd324d4f30c75f2cabb524db0e530cc30 | |
parent | b7a249680490991f92cc2144d4eff65e4effb3b7 [diff] |
Simplify `RawTask::clone` to simply use copy
diff --git a/src/raw.rs b/src/raw.rs index ed3ee97..a45635e 100644 --- a/src/raw.rs +++ b/src/raw.rs
@@ -83,13 +83,7 @@ impl<F, R, S, T> Clone for RawTask<F, R, S, T> { fn clone(&self) -> Self { - Self { - header: self.header, - schedule: self.schedule, - tag: self.tag, - future: self.future, - output: self.output, - } + *self } }