Format the workspace with rustfmt

Make the tree rustfmt-clean so CI can enforce `cargo fmt --check`.
This commit is contained in:
Anthony
2026-05-29 14:59:39 +02:00
parent 2e708f7362
commit a8a02ee0bf
18 changed files with 1158 additions and 898 deletions
+2 -1
View File
@@ -50,7 +50,8 @@ pub async fn start_bridge(
_ => return Err("No config found — save config first".into()),
};
config::ensure_bridge_password(&mut cfg).map_err(|e| format!("Bridge password setup failed: {e}"))?;
config::ensure_bridge_password(&mut cfg)
.map_err(|e| format!("Bridge password setup failed: {e}"))?;
let mut handle = state.lock().await;
handle.start(cfg, password, None).await
+3 -7
View File
@@ -2,15 +2,14 @@
mod commands;
use std::sync::Arc;
use commands::BridgeState;
use std::sync::Arc;
use tauri::Manager;
use tokio::sync::Mutex;
use tutabridge_core::bridge::BridgeHandle;
fn main() {
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("debug"))
.init();
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("debug")).init();
tokio_rustls::rustls::crypto::ring::default_provider()
.install_default()
@@ -114,10 +113,7 @@ async fn stream_stats(
}
}
async fn stream_logs(
app: tauri::AppHandle,
mut rx: tokio::sync::broadcast::Receiver<String>,
) {
async fn stream_logs(app: tauri::AppHandle, mut rx: tokio::sync::broadcast::Receiver<String>) {
use tauri::Emitter;
loop {
match rx.recv().await {