Simplify the QueryInformation Action

This commit is contained in:
Richard 2022-04-27 16:18:27 -03:00
parent 6e167675d6
commit 5eefa5d4ea
7 changed files with 15 additions and 35 deletions

View file

@ -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> {