mirror of
https://gitverse.ru/ot/DownOnSpot
synced 2025-12-19 18:04:16 +00:00
Lint code
This commit is contained in:
parent
c523a3a18c
commit
2d00d596a0
3 changed files with 5 additions and 9 deletions
|
|
@ -74,7 +74,7 @@ impl Downloader {
|
||||||
.search(input)
|
.search(input)
|
||||||
.await?
|
.await?
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|item| SearchResult::from(item))
|
.map(SearchResult::from)
|
||||||
.collect();
|
.collect();
|
||||||
Ok(Some(results))
|
Ok(Some(results))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,11 +30,7 @@ async fn main() {
|
||||||
use colored::control;
|
use colored::control;
|
||||||
|
|
||||||
//backwards compatibility.
|
//backwards compatibility.
|
||||||
match control::set_virtual_terminal(true) {
|
if control::set_virtual_terminal(true).is_ok() {};
|
||||||
Ok(_) => {}
|
|
||||||
Err(_) => {}
|
|
||||||
};
|
|
||||||
|
|
||||||
start().await;
|
start().await;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,11 +28,11 @@ impl TagWrap {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get Tag trait
|
/// Get Tag trait
|
||||||
pub fn get_tag(&mut self) -> Box<&mut dyn Tag> {
|
pub fn get_tag(&mut self) -> &mut dyn Tag {
|
||||||
Box::new(match self {
|
match self {
|
||||||
TagWrap::Ogg(tag) => tag,
|
TagWrap::Ogg(tag) => tag,
|
||||||
TagWrap::Id3(tag) => tag,
|
TagWrap::Id3(tag) => tag,
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue