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:
@@ -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