diff options
author | 2022-04-26 19:35:43 -0300 | |
---|---|---|
committer | 2022-04-27 15:42:55 -0300 | |
commit | 8643fbef90fc16371e27ae0142eb7e4c6b432d29 (patch) | |
tree | f28769e91ade49342f8c7248691f3d8edbbd89bd | |
parent | 18ecec2bbd9478151b8c65df0644278a174d0847 (diff) | |
download | iced-8643fbef90fc16371e27ae0142eb7e4c6b432d29.tar.gz iced-8643fbef90fc16371e27ae0142eb7e4c6b432d29.tar.bz2 iced-8643fbef90fc16371e27ae0142eb7e4c6b432d29.zip |
Rename `system::information` to `fetch_information`
-rw-r--r-- | examples/system_information/src/main.rs | 4 | ||||
-rw-r--r-- | winit/src/system.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/system_information/src/main.rs b/examples/system_information/src/main.rs index 79033e4c..1e61480f 100644 --- a/examples/system_information/src/main.rs +++ b/examples/system_information/src/main.rs @@ -32,7 +32,7 @@ impl Application for Example { fn new(_flags: ()) -> (Self, Command<Message>) { ( Self::Loading, - system::information(Message::InformationReceived), + system::fetch_information(Message::InformationReceived), ) } @@ -43,7 +43,7 @@ impl Application for Example { fn update(&mut self, message: Message) -> Command<Message> { match message { Message::Refresh => { - return system::information(Message::InformationReceived); + return system::fetch_information(Message::InformationReceived); } Message::InformationReceived(information) => { if let Some(information) = information { diff --git a/winit/src/system.rs b/winit/src/system.rs index a961c5b4..f5f68593 100644 --- a/winit/src/system.rs +++ b/winit/src/system.rs @@ -7,7 +7,7 @@ use iced_graphics::compositor; /// Query for available system information. /// /// Returns `None` if not using the `sysinfo` feature flag. -pub fn information<Message>( +pub fn fetch_information<Message>( f: impl Fn(Option<Information>) -> Message + 'static, ) -> Command<Message> { Command::single(command::Action::System(Action::QueryInformation( |