Remove redundant clone calls
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
a46f34efb2
commit
0aa24bdc32
2 changed files with 2 additions and 2 deletions
|
@ -255,7 +255,7 @@ louise receives:
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_read_actions() {
|
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 context: Context = bind_context(spec.context.clone());
|
||||||
let res = InOutStanza {
|
let res = InOutStanza {
|
||||||
inbound: vec![
|
inbound: vec![
|
||||||
|
|
|
@ -255,7 +255,7 @@ fn parse_send_receive<'a>(
|
||||||
let lines = lines.trim();
|
let lines = lines.trim();
|
||||||
|
|
||||||
Ok(match tagname {
|
Ok(match tagname {
|
||||||
"sends:" => (s, Action::Send(name, lines.clone())),
|
"sends:" => (s, Action::Send(name, lines)),
|
||||||
"receives:" => (s, Action::Receive(name, lines)),
|
"receives:" => (s, Action::Receive(name, lines)),
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue