style: 对整个项目进行代码格式化

This commit is contained in:
lanyeeee
2026-02-24 04:52:35 +08:00
parent 4cfafd4306
commit c560277589
12 changed files with 16 additions and 16 deletions

View File

@@ -1,18 +1,18 @@
use std::time::Duration;
use anyhow::{anyhow, Context};
use base64::{engine::general_purpose, Engine};
use anyhow::{Context, anyhow};
use base64::{Engine, engine::general_purpose};
use bytes::Bytes;
use parking_lot::RwLock;
use prost::Message;
use reqwest::{Client, StatusCode};
use reqwest_middleware::ClientWithMiddleware;
use reqwest_retry::{policies::ExponentialBackoff, Jitter, RetryTransientMiddleware};
use reqwest_retry::{Jitter, RetryTransientMiddleware, policies::ExponentialBackoff};
use serde::{Deserialize, Serialize};
use serde_json::json;
use tauri::{
http::{HeaderMap, HeaderValue},
AppHandle,
http::{HeaderMap, HeaderValue},
};
use tokio::task::JoinSet;

View File

@@ -2,8 +2,8 @@ use std::{
collections::HashMap,
path::PathBuf,
sync::{
atomic::{AtomicU64, Ordering},
Arc,
atomic::{AtomicU64, Ordering},
},
time::Duration,
};

View File

@@ -4,7 +4,7 @@ use std::{
time::{SystemTime, UNIX_EPOCH},
};
use anyhow::{anyhow, Context};
use anyhow::{Context, anyhow};
use serde::{Deserialize, Serialize};
use specta::Type;
use tauri::{AppHandle, Manager};

View File

@@ -5,7 +5,7 @@ use parking_lot::RwLock;
use tauri::AppHandle;
use tauri_specta::Event;
use tokio::{
sync::{watch, SemaphorePermit},
sync::{SemaphorePermit, watch},
time::sleep,
};

View File

@@ -4,7 +4,7 @@ use std::{
sync::Arc,
};
use anyhow::{anyhow, Context};
use anyhow::{Context, anyhow};
use fs4::fs_std::FileExt;
use parking_lot::Mutex;
use serde::{Deserialize, Serialize};

View File

@@ -1,6 +1,6 @@
use std::sync::Arc;
use anyhow::{anyhow, Context};
use anyhow::{Context, anyhow};
use chrono::{DateTime, Datelike, NaiveDateTime};
use serde::{Deserialize, Serialize};
use specta::Type;

View File

@@ -1,6 +1,6 @@
use std::{path::PathBuf, sync::Arc};
use anyhow::{anyhow, Context};
use anyhow::{Context, anyhow};
use serde::{Deserialize, Serialize};
use specta::Type;
use tauri::AppHandle;

View File

@@ -4,7 +4,7 @@ use std::{
sync::Arc,
};
use anyhow::{anyhow, Context};
use anyhow::{Context, anyhow};
use fs4::fs_std::FileExt;
use parking_lot::Mutex;
use serde::{Deserialize, Serialize};

View File

@@ -10,12 +10,12 @@ use tracing_appender::{
rolling::{RollingFileAppender, Rotation},
};
use tracing_subscriber::{
filter::{filter_fn, FilterExt, Targets},
Layer, Registry,
filter::{FilterExt, Targets, filter_fn},
fmt::{layer, time::LocalTime},
layer::SubscriberExt,
registry::LookupSpan,
util::SubscriberInitExt,
Layer, Registry,
};
use crate::{

View File

@@ -1,4 +1,4 @@
use anyhow::{anyhow, Context};
use anyhow::{Context, anyhow};
use serde::{Deserialize, Serialize};
use specta::Type;

View File

@@ -4,7 +4,7 @@ use std::{
path::{Path, PathBuf},
};
use anyhow::{anyhow, Context};
use anyhow::{Context, anyhow};
use byteorder::{BigEndian, ReadBytesExt};
use crate::{

View File

@@ -1,6 +1,6 @@
use std::time::{SystemTime, UNIX_EPOCH};
use anyhow::{anyhow, Context};
use anyhow::{Context, anyhow};
use md5::{Digest, Md5};
use serde::Deserialize;