commit 66fe44ccd85e355f6a0206ecec6b6cd653fad45e
parent 97a46c36d498db298dcc97f29ea2d1abdd95c04d
Author: MTRNord <mtrnord1@gmail.com>
Date: Tue, 26 Jan 2021 19:03:39 +0100
fix: Make sure to not move or borrow self
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mrsbfh-macros/src/lib.rs b/mrsbfh-macros/src/lib.rs
@@ -340,9 +340,10 @@ pub fn commands(_: TokenStream, input: TokenStream) -> TokenStream {
// Make sure this is immutable
let args: Vec<&str> = split.collect();
+ let cloned_client = self.client.clone();
if let Err(e) = match_command(
command.replace("!", "").as_str(),
- self.client.clone(),
+ cloned_client.clone(),
cloned_config.clone(),
tx,
sender,