Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvalencik committed Nov 17, 2023
1 parent f199331 commit 39af36a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions crates/neon/src/handle/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ pub struct Handle<'a, V: Value + 'a> {

impl<'a, V: Value> Clone for Handle<'a, V> {
fn clone(&self) -> Self {
Self {
value: self.value,
phantom: PhantomData,
}
*self
}
}

Expand Down
5 changes: 1 addition & 4 deletions crates/neon/src/types_impl/boxed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,7 @@ unsafe fn maybe_external_deref<'a>(env: Env, local: raw::Local) -> Option<&'a Bo
// Custom `Clone` implementation since `T` might not be `Clone`
impl<T: 'static> Clone for JsBoxInner<T> {
fn clone(&self) -> Self {
Self {
local: self.local,
raw_data: self.raw_data,
}
*self
}
}

Expand Down

0 comments on commit 39af36a

Please sign in to comment.