Simplify the QueryInformation Action
This commit is contained in:
parent
6e167675d6
commit
5eefa5d4ea
7 changed files with 15 additions and 35 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue