mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-01 19:44:39 +03:00
chore(deps) Update Rust crate serde_json to 1.0.48 (#507)
* 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>
This commit is contained in:
parent
915437aa0c
commit
5b46bacd46
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user