2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-11-10 06:25:00 +00:00
This commit is contained in:
asonix 2022-09-25 20:44:24 -05:00
parent 1465ec85df
commit 17dab63662
2 changed files with 2 additions and 5 deletions

View file

@ -85,7 +85,7 @@ pub(crate) async fn details_store<S: Store>(
let mut tmp_one = crate::file::File::create(&input_file).await?; let mut tmp_one = crate::file::File::create(&input_file).await?;
tmp_one tmp_one
.write_from_stream(store.to_stream(&identifier, None, None).await?) .write_from_stream(store.to_stream(identifier, None, None).await?)
.await?; .await?;
tmp_one.close().await?; tmp_one.close().await?;

View file

@ -69,10 +69,7 @@ impl ValidInputType {
} }
pub(crate) fn is_video(self) -> bool { pub(crate) fn is_video(self) -> bool {
match self { matches!(self, Self::Mp4 | Self::Webm | Self::Gif)
Self::Mp4 | Self::Webm | Self::Gif => true,
_ => false,
}
} }
fn video_hint(self) -> Option<&'static str> { fn video_hint(self) -> Option<&'static str> {