* chore(deps) Update Rust crate serde_json to 1.0.48 * fix(tauri) resolve clippy warning Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
@@ -21,7 +21,7 @@ icon = [
]
[dependencies]
-serde_json = "1.0.44"
+serde_json = "1.0.48"
serde = "1.0"
serde_derive = "1.0"
tiny_http = "0.6"
@@ -17,8 +17,5 @@ pub fn get_available_port() -> Option<u16> {
}
pub fn port_is_available(port: u16) -> bool {
- match TcpListener::bind(("127.0.0.1", port)) {
- Ok(_) => true,
- Err(_) => false,
- }
+ TcpListener::bind(("127.0.0.1", port)).is_ok()