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)
|
||||
.await?
|
||||
.into_iter()
|
||||
.map(|item| SearchResult::from(item))
|
||||
.map(SearchResult::from)
|
||||
.collect();
|
||||
Ok(Some(results))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,11 +30,7 @@ async fn main() {
|
|||
use colored::control;
|
||||
|
||||
//backwards compatibility.
|
||||
match control::set_virtual_terminal(true) {
|
||||
Ok(_) => {}
|
||||
Err(_) => {}
|
||||
};
|
||||
|
||||
if control::set_virtual_terminal(true).is_ok() {};
|
||||
start().await;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,11 +28,11 @@ impl TagWrap {
|
|||
}
|
||||
|
||||
/// Get Tag trait
|
||||
pub fn get_tag(&mut self) -> Box<&mut dyn Tag> {
|
||||
Box::new(match self {
|
||||
pub fn get_tag(&mut self) -> &mut dyn Tag {
|
||||
match self {
|
||||
TagWrap::Ogg(tag) => tag,
|
||||
TagWrap::Id3(tag) => tag,
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue