Page MenuHomeDevCentral

Provide ErrorResult type
ClosedPublic

Authored by dereckson on Sep 4 2018, 12:22.
Tags
None
Referenced Files
F7976333: D1660.diff
Tue, May 6, 04:09
Unknown Object (File)
Fri, May 2, 02:15
Unknown Object (File)
Tue, Apr 22, 02:13
Unknown Object (File)
Mon, Apr 21, 21:33
Unknown Object (File)
Mon, Apr 21, 19:38
Unknown Object (File)
Thu, Apr 17, 21:43
Unknown Object (File)
Thu, Apr 17, 19:43
Unknown Object (File)
Thu, Apr 17, 11:20
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.