diff options
author | 2022-04-27 16:18:27 -0300 | |
---|---|---|
committer | 2022-04-27 17:16:32 -0300 | |
commit | 5eefa5d4ead9ebfac7dab1db9aebf9797d2dad38 (patch) | |
tree | 335b97909321ee88c648aba5406c33083e35eea5 /native | |
parent | 6e167675d6a51a8a78d93439719ebffe35dcfdef (diff) | |
download | iced-5eefa5d4ead9ebfac7dab1db9aebf9797d2dad38.tar.gz iced-5eefa5d4ead9ebfac7dab1db9aebf9797d2dad38.tar.bz2 iced-5eefa5d4ead9ebfac7dab1db9aebf9797d2dad38.zip |
Simplify the `QueryInformation` Action
Diffstat (limited to 'native')
-rw-r--r-- | native/src/system/action.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/system/action.rs b/native/src/system/action.rs index 3bece0bb..6dab20a6 100644 --- a/native/src/system/action.rs +++ b/native/src/system/action.rs @@ -7,7 +7,7 @@ use std::fmt; /// An operation to be performed on the system. pub enum Action<T> { /// Query system information and produce `T` with the result. - QueryInformation(Box<dyn Fn(Option<system::Information>) -> T>), + QueryInformation(Box<dyn Fn(system::Information) -> T>), } impl<T> Action<T> { |