Fix clippy lints
This commit is contained in:
parent
713558993a
commit
30b33991e5
|
|
@ -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)]
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue