Fix unused import warnings for windows

This commit is contained in:
Yuhki 2025-05-24 03:00:33 +02:00
parent 8c0ee23828
commit f6477359e9
3 changed files with 13 additions and 4 deletions

View file

@ -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};

View file

@ -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};

View file

@ -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;