Chore: Clippy fixes for new lints
This commit is contained in:
@@ -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
|
||||
})?;
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user