diff --git a/src/main.rs b/src/main.rs index 9956c7c..1650d50 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,7 +21,7 @@ struct Cli { #[cfg(not(target_arch = "wasm32"))] fn main() -> Result<(), Box> { let args = Cli::parse(); - let url = args.url; + let url = args.url.as_str(); let text = args.text; if text.is_some() { let client = reqwest::blocking::Client::new(); @@ -33,7 +33,7 @@ fn main() -> Result<(), Box> { let client = reqwest::blocking::Client::new(); let form = multipart::Form::new().file("file", &file_name)?; - let res = client.post("your url").multipart(form).send()?; + let res = client.post(url).multipart(form).send()?; println!("{:?}", res) } Ok(())