mirror of
https://github.com/spartanz51/tutabridge.git
synced 2026-06-24 10:54:32 +02:00
Format the workspace with rustfmt
Make the tree rustfmt-clean so CI can enforce `cargo fmt --check`.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user