mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-25 01:02:20 -04:00
Fix clippy
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user