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