mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-10 01:31:27 +03:00
address clippy lints
This commit is contained in:
@@ -63,7 +63,7 @@ impl ClientRow {
|
||||
let port_binding = client_object
|
||||
.bind_property("port", &self.imp().port.get(), "text")
|
||||
.transform_from(|_, v: String| {
|
||||
if v == "" {
|
||||
if v.is_empty() {
|
||||
Some(DEFAULT_PORT as u32)
|
||||
} else {
|
||||
Some(v.parse::<u16>().unwrap_or(DEFAULT_PORT) as u32)
|
||||
|
||||
Reference in New Issue
Block a user