mirror of
https://github.com/yuhkix/wuwa-downloader.git
synced 2025-06-04 08:53:41 +00:00
Fix unused import warnings for windows
This commit is contained in:
parent
8c0ee23828
commit
f6477359e9
3 changed files with 13 additions and 4 deletions
|
@ -2,8 +2,12 @@ use colored::Colorize;
|
|||
use reqwest::blocking::Client;
|
||||
use serde_json::Value;
|
||||
use std::{
|
||||
fs::{self, File}, io::{self, Write}, process::Command, sync::Arc, thread, time::{Duration, Instant}
|
||||
fs::{self, File}, io::{self, Write}, sync::Arc, thread, time::{Duration, Instant}
|
||||
};
|
||||
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
use std::process::Command;
|
||||
|
||||
#[cfg(windows)]
|
||||
use winconsole::console::{clear, set_title};
|
||||
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
use std::process::Command;
|
||||
|
||||
use colored::*;
|
||||
use reqwest::blocking::Client;
|
||||
use serde_json::Value;
|
||||
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
use std::process::Command;
|
||||
|
||||
#[cfg(windows)]
|
||||
use winconsole::console::{clear, set_title};
|
||||
|
||||
|
|
|
@ -4,8 +4,11 @@ use indicatif::{ProgressBar, ProgressStyle};
|
|||
use reqwest::blocking::Client;
|
||||
use serde_json::{Value, from_reader, from_str};
|
||||
use std::{
|
||||
fs, io::{self, Read, Write}, path::Path, process::Command, time::Duration, u64
|
||||
fs, io::{self, Read, Write}, path::Path, time::Duration, u64
|
||||
};
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
use std::process::Command;
|
||||
|
||||
#[cfg(windows)]
|
||||
use winconsole::console::clear;
|
||||
|
||||
|
|
Loading…
Reference in a new issue