Skip to content

Commit 02afe05

Browse files
committed
url, emtpy line printing at the end
1 parent 5156cee commit 02afe05

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/main.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use reqwest::blocking::Client;
22
use serde_json::{from_str, Value};
3-
use std::fs::File;
4-
use std::path::{Path, PathBuf};
3+
use std::path::{Path};
54

65
pub mod util;
76

@@ -38,7 +37,7 @@ fn u(path: String) {
3837
let status: bool = json["status"].as_bool().unwrap();
3938

4039
if status == true {
41-
println!("{}", json["data"]["file"]["url"]["short"].as_str().unwrap());
40+
println!("URL: {}", json["data"]["file"]["url"]["short"].as_str().unwrap());
4241
} else {
4342
println!(
4443
"Anonfiles said: \"{}\"",
@@ -61,7 +60,7 @@ fn main() {
6160
return h(args[0].clone());
6261
}
6362

64-
return match args[1].as_str() {
63+
match args[1].as_str() {
6564
"-h" | "--help" => {
6665
h(args[0].clone());
6766
}
@@ -76,4 +75,6 @@ fn main() {
7675
h(args[0].clone());
7776
}
7877
};
78+
79+
println!("");
7980
}

0 commit comments

Comments
 (0)