diff options
author | 2025-02-21 01:19:53 +0100 | |
---|---|---|
committer | 2025-02-21 01:37:13 +0100 | |
commit | 67e489e382e98fc5d101b7892f1c7e44563d60f5 (patch) | |
tree | 17021855ef0bcd76eb6cfbfadf0a82f89c7b5568 /test | |
parent | 81ca3d2a223d62fbb48b93dcea5409f6212605fa (diff) | |
download | iced-67e489e382e98fc5d101b7892f1c7e44563d60f5.tar.gz iced-67e489e382e98fc5d101b7892f1c7e44563d60f5.tar.bz2 iced-67e489e382e98fc5d101b7892f1c7e44563d60f5.zip |
Update to Rust 2024 and fix compiler errors
Diffstat (limited to 'test')
-rw-r--r-- | test/src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/src/lib.rs b/test/src/lib.rs index 73726f08..982cc2c1 100644 --- a/test/src/lib.rs +++ b/test/src/lib.rs @@ -105,8 +105,8 @@ use crate::core::window; use crate::core::{ Element, Event, Font, Point, Rectangle, Settings, Size, SmolStr, }; -use crate::runtime::user_interface; use crate::runtime::UserInterface; +use crate::runtime::user_interface; use std::borrow::Cow; use std::fs; @@ -459,7 +459,9 @@ where } /// Turns the [`Simulator`] into the sequence of messages produced by any interactions. - pub fn into_messages(self) -> impl Iterator<Item = Message> { + pub fn into_messages( + self, + ) -> impl Iterator<Item = Message> + use<Message, Theme, Renderer> { self.messages.into_iter() } } |