Introduce QueryInformation to system::Action
This commit is contained in:
parent
fed8da1c90
commit
69781499cb
4 changed files with 52 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ pub enum Action<T> {
|
|||
Window(window::Action),
|
||||
|
||||
/// Run a system action.
|
||||
System(system::Action),
|
||||
System(system::Action<T>),
|
||||
}
|
||||
|
||||
impl<T> Action<T> {
|
||||
|
|
@ -38,7 +38,7 @@ impl<T> Action<T> {
|
|||
Self::Future(future) => Action::Future(Box::pin(future.map(f))),
|
||||
Self::Clipboard(action) => Action::Clipboard(action.map(f)),
|
||||
Self::Window(window) => Action::Window(window),
|
||||
Self::System(system) => Action::System(system),
|
||||
Self::System(system) => Action::System(system.map(f)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue