mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-07 20:09:59 +03:00
fix clippy
This commit is contained in:
@@ -356,14 +356,12 @@ impl Window {
|
||||
|
||||
fn client_object_for_handle(&self, handle: ClientHandle) -> Option<ClientObject> {
|
||||
self.client_idx(handle)
|
||||
.map(|i| self.client_by_idx(i as u32))
|
||||
.flatten()
|
||||
.and_then(|i| self.client_by_idx(i as u32))
|
||||
}
|
||||
|
||||
fn row_for_handle(&self, handle: ClientHandle) -> Option<ClientRow> {
|
||||
self.client_idx(handle)
|
||||
.map(|i| self.row_by_idx(i as i32))
|
||||
.flatten()
|
||||
.and_then(|i| self.row_by_idx(i as i32))
|
||||
}
|
||||
|
||||
fn update_dns_state(&self, handle: ClientHandle, resolved: bool) {
|
||||
|
||||
@@ -38,7 +38,6 @@ pub struct ConfigToml {
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Eq, PartialEq)]
|
||||
pub struct TomlClient {
|
||||
pub capture_backend: Option<CaptureBackend>,
|
||||
pub hostname: Option<String>,
|
||||
pub host_name: Option<String>,
|
||||
pub ips: Option<Vec<IpAddr>>,
|
||||
|
||||
Reference in New Issue
Block a user