Skip to content

Commit

Permalink
Fix lints and test_shrink
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmerlin committed Oct 23, 2024
1 parent 54cf256 commit 7f2c2ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/egui_demo_lib/src/demo/widget_gallery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ fn doc_link_label_with_crate<'a>(
mod tests {
use super::*;
use crate::View;
use egui::{CentralPanel, Context, Vec2};
use egui::Vec2;
use egui_kittest::Harness;

#[test]
Expand Down
6 changes: 2 additions & 4 deletions crates/egui_demo_lib/src/rendering_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -699,14 +699,12 @@ mod tests {

harness.fit_contents();

let result = harness.try_wgpu_snapshot(&format!("rendering_test/dpi_{:.2}", dpi));
let result = harness.try_wgpu_snapshot(&format!("rendering_test/dpi_{dpi:.2}"));
if let Err(err) = result {
errors.push(err);
}
}

if !errors.is_empty() {
panic!("Errors: {:#?}", errors);
}
assert!(errors.is_empty(), "Errors: {errors:#?}");
}
}
4 changes: 2 additions & 2 deletions crates/egui_kittest/tests/snapshots/test_shrink.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7f2c2ff

Please sign in to comment.