diff --git a/src/driver/connection/mod.rs b/src/driver/connection/mod.rs index 18c60ce..cb82a86 100644 --- a/src/driver/connection/mod.rs +++ b/src/driver/connection/mod.rs @@ -144,7 +144,7 @@ impl Connection { let address_str = std::str::from_utf8(&view.get_address_raw()[..nul_byte_index]) .map_err(|_| Error::IllegalIp)?; - let address = IpAddr::from_str(&address_str).map_err(|e| { + let address = IpAddr::from_str(address_str).map_err(|e| { println!("{:?}", e); Error::IllegalIp })?; diff --git a/src/events/data.rs b/src/events/data.rs index 96e794f..c0f3a1d 100644 --- a/src/events/data.rs +++ b/src/events/data.rs @@ -66,7 +66,7 @@ impl Ord for EventData { .as_ref() .expect("T2 known to be well-defined by above."); - t1.cmp(&t2) + t1.cmp(t2) } else { Ordering::Equal } diff --git a/src/events/store.rs b/src/events/store.rs index 9bec9e2..7d5ccbf 100644 --- a/src/events/store.rs +++ b/src/events/store.rs @@ -210,7 +210,7 @@ impl GlobalEvents { .expect("Missing handle index for Tick (local timed)."); event_store - .process_timed(state.play_time, EventContext::Track(&[(&state, &handle)])) + .process_timed(state.play_time, EventContext::Track(&[(state, handle)])) .await; } } @@ -238,7 +238,7 @@ impl GlobalEvents { .process_untimed( state.position, untimed, - EventContext::Track(&[(&state, &handle)]), + EventContext::Track(&[(state, handle)]), ) .await; } diff --git a/src/handler.rs b/src/handler.rs index e3929fa..8891c3e 100644 --- a/src/handler.rs +++ b/src/handler.rs @@ -174,7 +174,7 @@ impl Call { self.leave().await?; true } else if conn.0.channel_id() == channel_id { - let _ = tx.send(completion_generator(&self)); + let _ = tx.send(completion_generator(self)); false } else { // not in progress, and/or a channel change. diff --git a/src/info.rs b/src/info.rs index e33383d..6ddc390 100644 --- a/src/info.rs +++ b/src/info.rs @@ -20,7 +20,7 @@ impl ConnectionProgress { pub(crate) fn get_connection_info(&self) -> Option<&ConnectionInfo> { use ConnectionProgress::*; match self { - Complete(c) => Some(&c), + Complete(c) => Some(c), _ => None, } }