diff --git a/examples/vello_editor/src/text.rs b/examples/vello_editor/src/text.rs index 8db2fbbf..55354f4e 100644 --- a/examples/vello_editor/src/text.rs +++ b/examples/vello_editor/src/text.rs @@ -96,7 +96,7 @@ impl Editor { } pub fn cursor_blink(&mut self) { - self.cursor_visible = self.start_time.map_or(false, |start_time| { + self.cursor_visible = self.start_time.is_some_and(|start_time| { let elapsed = Instant::now().duration_since(start_time); (elapsed.as_millis() / self.blink_period.as_millis()) % 2 == 0 });