mirror of
https://github.com/narrrl/ytd-rs.git
synced 2026-11-03 16:41:27 +01:00
format
This commit is contained in:
1 parent
c33574f7f9
commit
c1ac507152
1 file changed
+3
-1
+3
-1
@@ -122,7 +122,9 @@ impl YoutubeDL {
|
||||
cmd.arg(&self.link);
|
||||
|
||||
let mut pr = match cmd.spawn() {
|
||||
Err(why) => panic!("couldn't spawn youtube-dl: {:?}", why),
|
||||
Err(why) => {
|
||||
return Err(why);
|
||||
}
|
||||
Ok(process) => process,
|
||||
};
|
||||
pr.wait()
|
||||
|
||||
Reference in new issue
Block a user