diff --git a/src/client.rs b/src/client.rs index 41fa592..188a390 100644 --- a/src/client.rs +++ b/src/client.rs @@ -198,10 +198,7 @@ impl<'c, 'e, C: Command, E: Extension> From<(&'c C, &'e E)> for RequestData<'c, // Manual impl because this does not depend on whether `C` and `E` are `Clone` impl<'c, 'e, C, E> Clone for RequestData<'c, 'e, C, E> { fn clone(&self) -> Self { - Self { - command: self.command, - extension: self.extension, - } + *self } }