Page MenuHomeDevCentral

Provide ErrorResult type
ClosedPublic

Authored by dereckson on Sep 4 2018, 12:22.
Tags
None
Referenced Files
F47556377: D1660.id4237.diff
Mon, Aug 31, 21:00
F47505816: D1660.id4236.diff
Mon, Aug 31, 15:32
F47496096: D1660.diff
Mon, Aug 31, 14:20
F47445942: D1660.id4237.diff
Mon, Aug 31, 06:29
Unknown Object (File)
Wed, Aug 26, 17:01
Unknown Object (File)
Sun, Aug 23, 13:19
Unknown Object (File)
Sun, Aug 23, 05:18
Unknown Object (File)
Thu, Aug 20, 17:49
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 Not Applicable
Unit
Tests Not Applicable

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.