mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-15 14:15:52 -06:00
fix clippy
This commit is contained in:
parent
f849135c61
commit
93f5172daa
2 changed files with 2 additions and 5 deletions
|
|
@ -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>>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue