mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-12 16:36:33 +02:00
chore: Apply clippy suggestions
This commit is contained in:
@@ -30,7 +30,7 @@ fn set_cookies(
|
||||
fn cookies(cookie_store: &CookieStore, url: &url::Url) -> Option<HeaderValue> {
|
||||
let s = cookie_store
|
||||
.get_request_values(url)
|
||||
.map(|(name, value)| format!("{}={}", name, value))
|
||||
.map(|(name, value)| format!("{name}={value}"))
|
||||
.collect::<Vec<_>>()
|
||||
.join("; ");
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ impl<'de> Deserialize<'de> for Entry {
|
||||
};
|
||||
Ok(Entry {
|
||||
url: parse_url_pattern(&url).map_err(|e| {
|
||||
serde::de::Error::custom(format!("`{}` is not a valid URL pattern: {e}", url))
|
||||
serde::de::Error::custom(format!("`{url}` is not a valid URL pattern: {e}"))
|
||||
})?,
|
||||
})
|
||||
})
|
||||
|
||||
@@ -29,7 +29,7 @@ async fn accept_connection(stream: TcpStream) {
|
||||
|
||||
let (write, read) = ws_stream.split();
|
||||
if let Err(e) = read.forward(write).await {
|
||||
eprintln!("Error: {}", e);
|
||||
eprintln!("Error: {e}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user