pub type Result<T = ()> = Result<T, Box<dyn Error + Send + Sync>>;Expand description
A result type to allow using the try operator ? in unit tests.
Use it like so:
use gix_testtools::Result;
#[test]
fn this() -> Result {
let x: usize = "42".parse()?;
Ok(())
}Aliased Type§
pub enum Result<T = ()> {
Ok(T),
Err(Box<dyn Error + Sync + Send>),
}