style: reorder use statements for consistency across multiple files

This commit is contained in:
Kevin Yue committed 2026-05-06 23:20:56 +08:00
1 parent d06ce925ac
commit d48b29025e
18 files changed
+21 -21

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
use base64::{engine::general_purpose, Engine};
use base64::{Engine, engine::general_purpose};
pub fn encode(data: &[u8]) -> String {
let engine = general_purpose::STANDARD;
+2 -2
View File
@@ -1,8 +1,8 @@
use chacha20poly1305::{
aead::{Aead, OsRng},
AeadCore, ChaCha20Poly1305, Key, KeyInit,
aead::{Aead, OsRng},
};
use serde::{de::DeserializeOwned, Serialize};
use serde::{Serialize, de::DeserializeOwned};
pub fn generate_key() -> Key {
ChaCha20Poly1305::generate_key(&mut OsRng)
+1 -1
View File
@@ -3,7 +3,7 @@ use std::path::Path;
use log::{info, warn};
use regex::Regex;
use tempfile::NamedTempFile;
use version_compare::{compare_to, Cmp};
use version_compare::{Cmp, compare_to};
pub fn openssl_conf() -> String {
let option = get_openssl_option();
+1 -1
View File
@@ -2,7 +2,7 @@ use std::sync::RwLock;
use redact_engine::{Pattern, Redaction as RedactEngine};
use regex::Regex;
use url::{form_urlencoded, Url};
use url::{Url, form_urlencoded};
pub struct Redaction {
redact_engine: RwLock<Option<RedactEngine>>,
+1 -1
View File
@@ -23,9 +23,9 @@ mod unix {
use anyhow::bail;
use gtk::{
EventBox,
glib::Cast,
traits::{EventBoxExt, GtkWindowExt, WidgetExt},
EventBox,
};
use log::info;
use tauri::WebviewWindow;