Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Mar 23, 2024
1 parent 7135589 commit 4e97e63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hyper-boring/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ mod test;

fn key_index() -> Result<Index<Ssl, SessionKey>, ErrorStack> {
static IDX: OnceCell<Index<Ssl, SessionKey>> = OnceCell::new();
IDX.get_or_try_init(Ssl::new_ex_index).map(|v| *v)
IDX.get_or_try_init(Ssl::new_ex_index).copied()
}

#[derive(Clone)]
Expand Down
4 changes: 1 addition & 3 deletions tokio-boring/tests/async_get_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ async fn test() {

unsafe {
builder.set_async_get_session_callback(|_, _| {
let Some(der) = SERVER_SESSION_DER.get() else {
return None;
};
let der = SERVER_SESSION_DER.get()?;

Some(Box::pin(async move {
yield_now().await;
Expand Down

0 comments on commit 4e97e63

Please sign in to comment.