mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 18:06:35 +03:00
make clippy happy
This commit is contained in:
@@ -275,7 +275,7 @@ pub async fn set_config_from_qr(context: &Context, qr: &str) -> Result<(), Error
|
||||
LotState::QrWebrtcInstance => {
|
||||
let val = decode_webrtc_instance(context, qr).text2;
|
||||
context
|
||||
.set_config(Config::WebrtcInstance, val.as_ref().map(|x| x.as_str()))
|
||||
.set_config(Config::WebrtcInstance, val.as_deref())
|
||||
.await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user