Skip to content

Commit

Permalink
examples: adjust code for new download_and_hash
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsupark committed Nov 17, 2023
1 parent d9d1b69 commit d054987
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/download_test.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
use std::error::Error;
use url::Url;
use std::str::FromStr;

use ue_rs::download_and_hash;

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
let client = reqwest::Client::new();

let url = std::env::args().nth(1).expect("missing URL (second argument)");
let url = Url::from_str(std::env::args().nth(1).expect("missing URL (second argument)").as_str())?;

println!("fetching {}...", url);

Expand Down

0 comments on commit d054987

Please sign in to comment.