Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions examples/scenes/src/download.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,22 +101,22 @@ impl Download {
.prompt()?
};
if !cont {
println!("{} downloads complete", completed_count);
println!("{completed_count} downloads complete");
if failed_count > 0 {
println!("{} downloads failed", failed_count);
println!("{failed_count} downloads failed");
}
let remaining = to_download.len() - (completed_count + failed_count);
if remaining > 0 {
println!("{} downloads skipped", remaining);
println!("{remaining} downloads skipped");
}
return Err(e);
}
}
}
}
println!("{} downloads complete", completed_count);
println!("{completed_count} downloads complete");
if failed_count > 0 {
println!("{} downloads failed", failed_count);
println!("{failed_count} downloads failed");
}
debug_assert!(completed_count + failed_count == to_download.len());
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion examples/with_winit/src/hot_reload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub(crate) fn hot_reload(mut f: impl FnMut() -> Option<()> + Send + 'static) ->
None,
move |res: DebounceEventResult| match res {
Ok(_) => f().unwrap(),
Err(errors) => errors.iter().for_each(|e| println!("Error {:?}", e)),
Err(errors) => errors.iter().for_each(|e| println!("Error {e:?}")),
},
)?;

Expand Down
2 changes: 1 addition & 1 deletion examples/with_winit/src/multi_touch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ 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 {
f.write_fmt(format_args!("#{:?}: {:#?}\n", id, touch))?;
f.write_fmt(format_args!("#{id:?}: {touch:#?}\n"))?;
}
f.write_fmt(format_args!("gesture: {:#?}\n", self.gesture_state))?;
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion examples/with_winit/src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl Snapshot {
left_margin,
(2. - y) * graph_max_height + thres_text_height_2,
)),
&format!("{}", t),
&format!("{t}"),
);
scene.stroke(
&Stroke::new(graph_max_height * 0.01),
Expand Down
Loading