From af0412ae163045e4fee1ba5d60c5629c54f25145 Mon Sep 17 00:00:00 2001 From: ice_iix Date: Sat, 27 Oct 2018 16:42:44 -0700 Subject: [PATCH] Revert unnecessary whitespace change to reduce diff, align indentation on . --- src/resources.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/resources.rs b/src/resources.rs index ca3e52cb..e8182dab 100644 --- a/src/resources.rs +++ b/src/resources.rs @@ -289,8 +289,8 @@ impl Manager { if fs::metadata(&location).is_err(){ fs::create_dir_all(location.parent().unwrap()).unwrap(); let res = client.get(ASSET_INDEX_URL) - .send() - .unwrap(); + .send() + .unwrap(); let length = res.headers().get(reqwest::header::CONTENT_LENGTH).unwrap().to_str().unwrap().parse::().unwrap(); Self::add_task(&progress_info, "Downloading Asset Index", &*location.to_string_lossy(), length); @@ -319,8 +319,8 @@ impl Manager { if fs::metadata(&location).is_err(){ fs::create_dir_all(location.parent().unwrap()).unwrap(); let res = client.get(&format!("http://resources.download.minecraft.net/{}", hash_path)) - .send() - .unwrap(); + .send() + .unwrap(); let length = v.get("size").and_then(|v| v.as_u64()).unwrap(); Self::add_task(&progress_info, "Downloading Asset", k, length); let mut tmp_file = location.to_owned(); @@ -356,8 +356,8 @@ impl Manager { thread::spawn(move || { let client = reqwest::Client::new(); let res = client.get(VANILLA_CLIENT_URL) - .send() - .unwrap(); + .send() + .unwrap(); let mut file = fs::File::create(format!("{}.tmp", RESOURCES_VERSION)).unwrap(); let length = res.headers().get(reqwest::header::CONTENT_LENGTH).unwrap().to_str().unwrap().parse::().unwrap();