1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Enable more clippy lints

This commit is contained in:
Emil Ernerfeldt
2022-07-26 11:18:21 +02:00
parent a7012cf8a6
commit 8e2de26e4e
6 changed files with 25 additions and 22 deletions

View File

@@ -286,7 +286,7 @@ impl TouchState {
impl Debug for TouchState {
// This outputs less clutter than `#[derive(Debug)]`:
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
for (id, touch) in self.active_touches.iter() {
for (id, touch) in &self.active_touches {
f.write_fmt(format_args!("#{:?}: {:#?}\n", id, touch))?;
}
f.write_fmt(format_args!("gesture: {:#?}\n", self.gesture_state))?;