From b5122ed1bde967d2074c36f7ed165704e328c08d Mon Sep 17 00:00:00 2001 From: Kieaer Date: Wed, 30 Aug 2023 17:12:39 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/library.rs | 2 ++ src/main.rs | 7 +++---- src/structs.rs | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/library.rs b/src/library.rs index 376a639..e45b93f 100644 --- a/src/library.rs +++ b/src/library.rs @@ -1,9 +1,11 @@ use std::fs; use std::fs::File; use std::io::Read; + use chrono::{DateTime, Local, NaiveDateTime, TimeZone}; use chrono::format::{DelayedFormat, StrftimeItems}; use dirs::config_dir; + use crate::structs::{RipperData, UserData}; pub fn convert_time<'a>(value: u64) -> DelayedFormat> { diff --git a/src/main.rs b/src/main.rs index c69167b..33d2d55 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,7 @@ use std::{fs, ptr, thread}; use std::cell::Cell; use std::collections::HashMap; use std::fs::File; -use std::io::{BufRead, BufReader, Read, stdin}; +use std::io::{BufRead, BufReader, Read}; use std::path::PathBuf; use std::process::{Command, exit}; use std::rc::Rc; @@ -21,7 +21,6 @@ use reqwest::blocking::{Client, RequestBuilder}; use reqwest::cookie::Cookie; use reqwest::header::{AUTHORIZATION, COOKIE, HeaderMap, HeaderValue, USER_AGENT}; use rodio::{Decoder, OutputStream, Source}; -use rpassword::read_password; use rusqlite::Connection; use self_update::cargo_crate_version; use serde_json::{json, Value}; @@ -32,7 +31,7 @@ use winapi::shared::minwindef::{DWORD, MAX_PATH}; use winapi::um::tlhelp32::{CreateToolhelp32Snapshot, Process32First, Process32Next, PROCESSENTRY32}; use crate::library::{convert_time, get_id, get_ripper, get_user, set_ripper, set_user}; -use crate::structs::{AvatarData, AvatarList, AvatarItem, PcInfo, RipperData, SaveData, SearchData, UserData}; +use crate::structs::{AvatarData, AvatarItem, AvatarList, RipperData, SaveData, SearchData, UserData}; mod structs; mod library; @@ -631,7 +630,7 @@ fn play_audio() { fn main() -> Result<(), Box> { print_author(); - // auto_update().expect("업데이트 확인 오류"); + auto_update().expect("업데이트 확인 오류"); fs::create_dir_all(config_dir().unwrap().join("VRCX/Anti-Ripper")).expect("폴더 생성 오류"); diff --git a/src/structs.rs b/src/structs.rs index 048891e..316c89e 100644 --- a/src/structs.rs +++ b/src/structs.rs @@ -1,5 +1,6 @@ #![allow(non_snake_case)] -use serde::{Deserialize, Deserializer, Serialize}; + +use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Serialize, Deserialize)] pub struct UserData {