mirror of
https://github.com/storytold/AniCraft.git
synced 2026-11-25 20:10:47 +01:00
fix(a11y): clippy (M8)
This commit is contained in:
1 parent
880bf0ea3c
commit
af2f8141a4
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -449,7 +449,7 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
fn node<'a>(t: &'a TreeUpdate, id: egui::Id) -> Option<&'a Node> {
|
||||
fn node(t: &TreeUpdate, id: egui::Id) -> Option<&Node> {
|
||||
t.nodes.iter().find(|(n, _)| *n == id.accesskit_id()).map(|(_, n)| n)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1146,7 +1146,7 @@ pub fn show(app: &mut App, ui: &mut egui::Ui) {
|
||||
};
|
||||
crate::a11y::surface(ui, &resp, &name);
|
||||
// Its elements, one by one, while it has the keyboard (ADR 0064).
|
||||
crate::stage_a11y::show(app, ui, &resp, |p| to_screen(p));
|
||||
crate::stage_a11y::show(app, ui, &resp, to_screen);
|
||||
}
|
||||
|
||||
// ----- raw shapes (ADR 0031, 0041) ----------------------------------------------------------------
|
||||
|
||||
+1
-1
@@ -853,7 +853,7 @@ pub fn show(app: &mut App, ui: &mut egui::Ui) {
|
||||
a11y::control(ui, &cr, WidgetType::Button, &tr!("Frames of {name}", name = layer.name), None);
|
||||
if is_active {
|
||||
// Its keyframes and spans, one by one, for screen readers (ADR 0064).
|
||||
frame_nodes(app, ui, &cr, layer, |f| x_of(f), y);
|
||||
frame_nodes(app, ui, &cr, layer, x_of, y);
|
||||
}
|
||||
let shift = ui.input(|inp| inp.modifiers.shift);
|
||||
if cr.clicked() || cr.drag_started() || cr.secondary_clicked() {
|
||||
|
||||
Reference in new issue
Block a user