From f3178912b76f81619afe20042ef8a80110a4ff53 Mon Sep 17 00:00:00 2001 From: Orion Date: Tue, 30 Jul 2024 16:48:26 +0200 Subject: [PATCH] feat: Derive clone --- form_urlencoded/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/form_urlencoded/src/lib.rs b/form_urlencoded/src/lib.rs index 1d68579b7..19cf4918f 100644 --- a/form_urlencoded/src/lib.rs +++ b/form_urlencoded/src/lib.rs @@ -100,6 +100,7 @@ impl<'a> Parse<'a> { } /// Like `Parse`, but yields pairs of `String` instead of pairs of `Cow`. +#[derive(Clone)] pub struct ParseIntoOwned<'a> { inner: Parse<'a>, } @@ -173,6 +174,7 @@ impl<'a> Iterator for ByteSerialize<'a> { /// The [`application/x-www-form-urlencoded` serializer]( /// https://url.spec.whatwg.org/#concept-urlencoded-serializer). +#[derive(Clone)] pub struct Serializer<'a, T: Target> { target: Option, start_position: usize,