Skip to content

Commit 1334a0d

Browse files
DCNick3mversic
authored andcommitted
[feature] #3383: Make clippy happy
Signed-off-by: Nikita Strygin <[email protected]>
1 parent a308c6b commit 1334a0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

primitives/derive/src/socket_addr.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,10 @@ impl syn::parse::Parse for SocketAddress {
133133
}
134134
}
135135

136+
// it's fine, these are just segments of IPv6 addresses
137+
#[allow(clippy::many_single_char_names)]
136138
pub fn socket_addr_impl(input: TokenStream) -> TokenStream {
137-
let socket_address = match syn::parse2::<SocketAddress>(input.clone()) {
139+
let socket_address = match syn::parse2::<SocketAddress>(input) {
138140
Ok(addr) => addr,
139141
Err(e) => return e.into_compile_error(),
140142
};

0 commit comments

Comments
 (0)