mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 19:31:35 +00:00
Clippy
This commit is contained in:
parent
1465ec85df
commit
17dab63662
2 changed files with 2 additions and 5 deletions
|
@ -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?;
|
||||||
|
|
||||||
|
|
|
@ -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> {
|
||||||
|
|
Loading…
Reference in a new issue