Skip to content

Commit 357ec63

Browse files
mtjhrcslp
authored andcommitted
tests: Fix clippy warning
Signed-off-by: Matej Hrica <[email protected]>
1 parent e075938 commit 357ec63

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/macros/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub fn guest(_args: TokenStream, input: TokenStream) -> TokenStream {
1313
.into();
1414

1515
prefix.extend(input);
16-
prefix.into()
16+
prefix
1717
}
1818

1919
#[proc_macro_attribute]
@@ -24,5 +24,5 @@ pub fn host(_args: TokenStream, input: TokenStream) -> TokenStream {
2424
.into();
2525

2626
prefix.extend(input);
27-
prefix.into()
27+
prefix
2828
}

tests/test_cases/src/tcp_tester.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn connect(port: u16) -> TcpStream {
3030
let addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), port);
3131
let mut tries = 0;
3232
loop {
33-
match TcpStream::connect(&addr) {
33+
match TcpStream::connect(addr) {
3434
Ok(stream) => return stream,
3535
Err(err) => {
3636
if tries == 5 {

0 commit comments

Comments
 (0)