Return a Result<()> from the method, and "unwrap" it into error_fatal in the caller. Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
9 lines
167 B
Rust
9 lines
167 B
Rust
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
pub mod bindings;
|
|
pub mod error;
|
|
pub mod log;
|
|
pub mod module;
|
|
pub mod timer;
|
|
|
|
pub use error::{Error, Result, ResultExt};
|