Page MenuHomeDevCentral

Provide ErrorResult type
ClosedPublic

Authored by dereckson on Sep 4 2018, 12:22.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 22, 17:29
Unknown Object (File)
Tue, Jan 21, 23:53
Unknown Object (File)
Tue, Jan 21, 19:20
Unknown Object (File)
Tue, Jan 21, 14:28
Unknown Object (File)
Tue, Jan 21, 09:44
Unknown Object (File)
Tue, Jan 21, 07:05
Unknown Object (File)
Mon, Jan 20, 03:59
Unknown Object (File)
Fri, Jan 17, 22:54
Subscribers
None

Details

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(())
}

Diff Detail

Repository
rLF Limiting Factor
Lint
Lint Passed
Unit
No Test Coverage
Branch
type
Build Status
Buildable 2605
Build 2853: arc lint + arc unit

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Sep 4 2018, 12:22
This revision was automatically updated to reflect the committed changes.