From 0aa24bdc32063f62e36cda6837a83af298dea68e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Wed, 18 Oct 2023 17:22:25 +0200 Subject: [PATCH] Remove redundant clone calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- src/interpreter.rs | 2 +- src/parsers.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interpreter.rs b/src/interpreter.rs index 8cfc38a..178cfeb 100644 --- a/src/interpreter.rs +++ b/src/interpreter.rs @@ -255,7 +255,7 @@ louise receives: #[test] fn test_read_actions() { - let spec = parse_spec(BUF1.clone()).unwrap(); + let spec = parse_spec(BUF1).unwrap(); let context: Context = bind_context(spec.context.clone()); let res = InOutStanza { inbound: vec![ diff --git a/src/parsers.rs b/src/parsers.rs index e3269a6..06531b1 100644 --- a/src/parsers.rs +++ b/src/parsers.rs @@ -255,7 +255,7 @@ fn parse_send_receive<'a>( let lines = lines.trim(); Ok(match tagname { - "sends:" => (s, Action::Send(name, lines.clone())), + "sends:" => (s, Action::Send(name, lines)), "receives:" => (s, Action::Receive(name, lines)), _ => unreachable!(), })