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:
renovate[bot] 2020-03-12 13:04:52 -03:00 committed by GitHub
parent 915437aa0c
commit 5b46bacd46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

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

View File

@ -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()
}