mirror of
https://github.com/GuillemCastro/spotify-dl.git
synced 2025-05-10 06:15:32 +02:00
fixed excluding logic - now it works
This commit is contained in:
parent
ae0e8f6ebc
commit
61dcdb6e55
2 changed files with 25 additions and 6 deletions
|
@ -22,11 +22,10 @@ impl FileSink {
|
|||
}
|
||||
|
||||
impl Open for FileSink {
|
||||
// use the unwrap_or_else method instead of the if let statement to handle the absence of a path value
|
||||
fn open(path: Option<String>, _audio_format: AudioFormat) -> Self {
|
||||
let file = path.unwrap_or_else(|| panic!());
|
||||
let file_path = path.unwrap_or_else(|| panic!());
|
||||
FileSink {
|
||||
sink: file,
|
||||
sink: file_path,
|
||||
content: Vec::new(),
|
||||
metadata: None
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue