Skip to content

Commit 31e452e

Browse files
committed
chore: import sorting
1 parent 9cf2045 commit 31e452e

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src-tauri/src/services/connection_manager.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
//! Handles automatic reconnection with exponential backoff on connection failures.
55
66
use base64::{engine::general_purpose::STANDARD, Engine};
7-
use url::Url;
87
use futures_util::StreamExt;
98
use pulldown_cmark::{Event, Parser, Tag, TagEnd};
109
use std::collections::HashMap;
@@ -16,6 +15,7 @@ use tokio_tungstenite::{
1615
connect_async,
1716
tungstenite::{self, client::IntoClientRequest, http::HeaderValue, Message},
1817
};
18+
use url::Url;
1919

2020
use crate::config::connection::{JITTER_MAX_SECS, RETRY_BACKOFF_SECS};
2121
use crate::db::Database;
@@ -287,11 +287,7 @@ impl ConnectionManager {
287287
let ws_scheme = match parsed.scheme() {
288288
"https" => "wss",
289289
"http" => "ws",
290-
s => {
291-
return Err(AppError::InvalidUrl(format!(
292-
"Unsupported URL scheme: {s}"
293-
)))
294-
}
290+
s => return Err(AppError::InvalidUrl(format!("Unsupported URL scheme: {s}"))),
295291
};
296292
parsed
297293
.set_scheme(ws_scheme)

0 commit comments

Comments
 (0)