ui-panels: clippy 1.100 clean tests: collapsed if; the scopes trial drops the id import ruling (c) left unused

This commit is contained in:
bflatastic
2026-11-22 22:36:57 +07:00
parent d017edbad0
commit 0beefd0d71
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -253,10 +253,10 @@ fn a_job_window_shows_again_for_the_next_job_after_cancel() {
let answered = Rc::new(Cell::new(None));
let (on, got) = (Rc::clone(&drawing), Rc::clone(&answered));
let mut fixture = Fixture::new(move |ui| {
if on.get() {
if let Some(answer) = JobProgress::new("Exporting", "Page 1 of 3").show(ui).answer {
got.set(Some(answer));
}
if on.get()
&& let Some(answer) = JobProgress::new("Exporting", "Page 1 of 3").show(ui).answer
{
got.set(Some(answer));
}
});
fixture.idle(6);
+1 -1
View File
@@ -1,6 +1,6 @@
//! Focus scopes: initial focus, restore, trapping, panes, programmatic requests and focus after removal.
use super::{control, focus, focused, id};
use super::{control, focus, focused};
use craft_ui::testing::{Frames, trial};
use egui::Ui;
use std::cell::Cell;