From 47f2fe07500e7425099a34db3693200fbb23ed88 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Sat, 16 Dec 2023 21:30:57 +0100 Subject: [PATCH] transport/file: Derive `Clone` impls (#924) --- src/transport/file/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transport/file/mod.rs b/src/transport/file/mod.rs index cdebf97..0dca73d 100644 --- a/src/transport/file/mod.rs +++ b/src/transport/file/mod.rs @@ -157,7 +157,7 @@ mod error; type Id = String; /// Writes the content and the envelope information to a file -#[derive(Debug)] +#[derive(Debug, Clone)] #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[cfg_attr(docsrs, doc(cfg(feature = "file-transport")))] pub struct FileTransport { @@ -167,7 +167,7 @@ pub struct FileTransport { } /// Asynchronously writes the content and the envelope information to a file -#[derive(Debug)] +#[derive(Debug, Clone)] #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] #[cfg_attr(docsrs, doc(cfg(any(feature = "tokio1", feature = "async-std1"))))] #[cfg(any(feature = "async-std1", feature = "tokio1"))]