Skip to content

Commit

Permalink
Chore: Clippy fixes for new lints
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMcFelix committed Jun 14, 2021
1 parent d2bb277 commit a1c4f07
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/driver/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
})?;
Expand Down
2 changes: 1 addition & 1 deletion src/events/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions src/events/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -238,7 +238,7 @@ impl GlobalEvents {
.process_untimed(
state.position,
untimed,
EventContext::Track(&[(&state, &handle)]),
EventContext::Track(&[(state, handle)]),
)
.await;
}
Expand Down
2 changes: 1 addition & 1 deletion src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
Expand Down

0 comments on commit a1c4f07

Please sign in to comment.