Skip to content

Commit 279f4ad

Browse files
author
Henrik Gustafsson
committed
Fix clippy::useless_conversion lint in Session changed in clippy 0.1.85
Introduced by rust-lang/rust-clippy#13756
1 parent 90f6ce4 commit 279f4ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scylla/src/client/session.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,9 +1796,8 @@ impl Session {
17961796
let result = match effective_timeout {
17971797
Some(timeout) => tokio::time::timeout(timeout, runner)
17981798
.await
1799-
.map(|res| res.map_err(RequestError::from))
18001799
.unwrap_or_else(|_| Err(RequestError::RequestTimeout(timeout))),
1801-
None => runner.await.map_err(RequestError::from),
1800+
None => runner.await,
18021801
};
18031802

18041803
if let Some((history_listener, request_id)) = history_listener_and_id {

0 commit comments

Comments
 (0)