mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 02:09:00 +00:00
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:
@@ -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,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;
|
||||
|
||||
Reference in New Issue
Block a user