Skip to content

Commit

Permalink
remove unnecessary .clone() call (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowhatter authored Jun 14, 2024
1 parent 606c7f1 commit 337a18c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ pub unsafe extern "C" fn z_bytes_decode_into_owned_shm(
let payload = this.transmute_ref();
match payload.deserialize::<&zshm>() {
Ok(s) => {
Inplace::init(dst.transmute_uninit_ptr(), Some(s.clone().to_owned()));
Inplace::init(dst.transmute_uninit_ptr(), Some(s.to_owned()));
errors::Z_OK
}
Err(e) => {
Expand Down

0 comments on commit 337a18c

Please sign in to comment.