From a1f5e188cc5128ca805220a30fbe04fc2c2af9d5 Mon Sep 17 00:00:00 2001 From: Nathan West Date: Fri, 3 Apr 2020 20:24:43 -0400 Subject: [PATCH] Simplify `RawTask::clone` to simply use copy --- src/raw.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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 Copy for RawTask {} impl Clone for RawTask { fn clone(&self) -> Self { - Self { - header: self.header, - schedule: self.schedule, - tag: self.tag, - future: self.future, - output: self.output, - } + *self } }