HomeDevCentral

Provide ErrorResult type

Description

Provide ErrorResult type

Summary:
ErrorResult<T> is a convenience alias to avoid to write types like
Result<User, Box<dyn Error>>, to allow any object implementing the
standard library Error trait to serve as the error part of a result.

Test Plan:

pub fn run(config: Config) -> ErrorResult<()> {
	something_dangerous()?;

	Ok(())
}

Reviewers: dereckson

Reviewed By: dereckson

Differential Revision: https://devcentral.nasqueron.org/D1660

Details

Provenance
derecksonAuthored on Sep 4 2018, 12:19
derecksonPushed on Sep 4 2018, 12:23
Reviewer
dereckson
Differential Revision
D1660: Provide ErrorResult type
Parents
rLF377ba2391f7a: Configure Arcanist
Branches
Unknown
Tags
Unknown