File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11use reqwest:: blocking:: Client ;
22use serde_json:: { from_str, Value } ;
3- use std:: fs:: File ;
4- use std:: path:: { Path , PathBuf } ;
3+ use std:: path:: { Path } ;
54
65pub 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}
You can’t perform that action at this time.
0 commit comments