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?;
tmp_one
.write_from_stream(store.to_stream(&identifier, None, None).await?)
.write_from_stream(store.to_stream(identifier, None, None).await?)
.await?;
tmp_one.close().await?;

View File

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