Skip to content

Commit df890af

Browse files
authored
chore: format Rust code (HarshCasper#1136)
1 parent efcd122 commit df890af

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Rust/Youtube_Downloader/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub fn parse_args() -> Result<AppArgs, Box<dyn std::error::Error>> {
4444
// extraneous additional argumetns
4545
let remaining = cmdargs.finish();
4646
if !remaining.is_empty() {
47-
return Err("Additional arguments specifed".into())
47+
return Err("Additional arguments specifed".into());
4848
}
4949

5050
Ok(args)

Rust/Youtube_Downloader/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ fn run(args: cli::AppArgs) -> Result<(), Box<dyn Error>> {
2626
video.best_video()
2727
} else {
2828
video.best_quality()
29-
}.unwrap();
29+
}
30+
.unwrap();
3031

3132
let path = block!(to_download.download())?;
3233
println!("Downloaded to {}", path.to_str().unwrap_or_default());

0 commit comments

Comments
 (0)