mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
clippy fix
This commit is contained in:
@@ -35,7 +35,7 @@ impl Output {
|
||||
/// This can be used by a text-to-speech system to describe the events (if any).
|
||||
pub fn events_description(&self) -> String {
|
||||
// only describe last event:
|
||||
for event in self.events.iter().rev() {
|
||||
if let Some(event) = self.events.iter().rev().next() {
|
||||
match event {
|
||||
OutputEvent::WidgetEvent(WidgetEvent::Focus, widget_info) => {
|
||||
return widget_info.description();
|
||||
|
||||
Reference in New Issue
Block a user