Fix clippy

This commit is contained in:
ismailgulek
2022-11-09 16:34:41 +03:00
parent 7f54e4592f
commit 26d690a21c

View File

@@ -430,10 +430,7 @@ impl From<&matrix_sdk::ruma::events::room::message::VideoInfo> for VideoInfo {
});
Self {
duration: match info.duration {
Some(d) => Some(d.as_secs()),
_ => None,
},
duration: info.duration.map(|d| d.as_secs()),
height: info.height.map(Into::into),
width: info.width.map(Into::into),
mimetype: info.mimetype.clone(),