Skip to content

Commit f20376e

Browse files
committed
Remove unnecessary clone
1 parent ac1be9a commit f20376e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ mod test {
200200
fn generic_struct() {
201201
let int_struct_in: GenericStruct::<i64, String> = shvproto::make_map!("x" => 123, "y" => vec![123, 456], "z" => "some_string").try_into().expect("Failed to parse");
202202
let int_struct_rpcvalue: shvproto::RpcValue = int_struct_in.clone().into();
203-
let int_struct_out: GenericStruct::<i64, String> = int_struct_rpcvalue.clone().try_into().expect("Failed to parse");
203+
let int_struct_out: GenericStruct::<i64, String> = int_struct_rpcvalue.try_into().expect("Failed to parse");
204204
assert_eq!(int_struct_in, int_struct_out);
205205

206206
}

0 commit comments

Comments
 (0)