Remove redundant clone calls

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2023-10-18 17:22:25 +02:00
parent a46f34efb2
commit 0aa24bdc32
2 changed files with 2 additions and 2 deletions

View file

@ -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![

View file

@ -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!(),
})