Skip to content

Commit beabbb1

Browse files
committed
chore: apply clippy suggestions
1 parent 887bcae commit beabbb1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

testcontainers/src/core/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ where
507507
format!("Docker container has been dropped: {}", message),
508508
),
509509
bollard::errors::Error::IOError { err } => err,
510-
err => io::Error::new(io::ErrorKind::Other, err),
510+
err => io::Error::other(err),
511511
})
512512
.boxed();
513513
LogStream::new(stream)

testcontainers/src/core/logs/stream.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ impl LogStream {
8080
Err(err) => {
8181
let err = Arc::new(err);
8282
handle_error!(
83-
stdout_tx.send(Err(io::Error::new(io::ErrorKind::Other, err.clone())))
83+
stdout_tx.send(Err(io::Error::other(err.clone())))
8484
);
8585
handle_error!(
86-
stderr_tx.send(Err(io::Error::new(io::ErrorKind::Other, err)))
86+
stderr_tx.send(Err(io::Error::other(err)))
8787
);
8888
}
8989
}

0 commit comments

Comments
 (0)