Skip to content

Commit

Permalink
[feature] #3383: remove a redundant clone
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Strygin <DCNick3@users.noreply.github.com>
  • Loading branch information
DCNick3 committed Jul 5, 2023
1 parent f18e50c commit 790d557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion primitives/derive/src/socket_addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl syn::parse::Parse for SocketAddress {
}

pub fn socket_addr_impl(input: TokenStream) -> TokenStream {
let socket_address = match syn::parse2::<SocketAddress>(input.clone()) {
let socket_address = match syn::parse2::<SocketAddress>(input) {
Ok(addr) => addr,
Err(e) => return e.into_compile_error(),
};
Expand Down

0 comments on commit 790d557

Please sign in to comment.