From 32a6d876a6dab905a17a10af4fe8e9fd8871d20c Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 25 Aug 2021 07:56:28 +0800 Subject: [PATCH] Make API top level structure implement Clone, related to #295 --- src/mako/api/api.rs.mako | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mako/api/api.rs.mako b/src/mako/api/api.rs.mako index fb1dddb863..7f454901b5 100644 --- a/src/mako/api/api.rs.mako +++ b/src/mako/api/api.rs.mako @@ -47,6 +47,7 @@ ${lib.scope_enum()} <%block filter="rust_doc_comment">\ ${lib.hub_usage_example(c)}\ +#[derive(Clone)] pub struct ${hub_type}${ht_params} { client: hyper::Client, hyper::body::Body>, auth: oauth2::authenticator::Authenticator>,