mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-20 07:33:19 +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> {
|
fn client_object_for_handle(&self, handle: ClientHandle) -> Option<ClientObject> {
|
||||||
self.client_idx(handle)
|
self.client_idx(handle)
|
||||||
.map(|i| self.client_by_idx(i as u32))
|
.and_then(|i| self.client_by_idx(i as u32))
|
||||||
.flatten()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn row_for_handle(&self, handle: ClientHandle) -> Option<ClientRow> {
|
fn row_for_handle(&self, handle: ClientHandle) -> Option<ClientRow> {
|
||||||
self.client_idx(handle)
|
self.client_idx(handle)
|
||||||
.map(|i| self.row_by_idx(i as i32))
|
.and_then(|i| self.row_by_idx(i as i32))
|
||||||
.flatten()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn update_dns_state(&self, handle: ClientHandle, resolved: bool) {
|
fn update_dns_state(&self, handle: ClientHandle, resolved: bool) {
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ pub struct ConfigToml {
|
|||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug, Eq, PartialEq)]
|
#[derive(Serialize, Deserialize, Debug, Eq, PartialEq)]
|
||||||
pub struct TomlClient {
|
pub struct TomlClient {
|
||||||
pub capture_backend: Option<CaptureBackend>,
|
|
||||||
pub hostname: Option<String>,
|
pub hostname: Option<String>,
|
||||||
pub host_name: Option<String>,
|
pub host_name: Option<String>,
|
||||||
pub ips: Option<Vec<IpAddr>>,
|
pub ips: Option<Vec<IpAddr>>,
|
||||||
|
|||||||
Reference in New Issue
Block a user