implement clippy suggestions

This commit is contained in:
Oleg Sobolev 2024-03-25 17:20:03 +07:00
parent ed7bd5efc8
commit aa04c6ef5b
5 changed files with 7 additions and 7 deletions

View file

@ -30,5 +30,5 @@ pub fn download_from_youtube(url: &str) -> Result<TrackInfo, DownloadError> {
.replace('\n', "")
+ ".mp3";
Ok(TrackInfo::new(&Path::new(filename.as_str())))
Ok(TrackInfo::new(Path::new(filename.as_str())))
}