This is an archive of the discontinued Mercurial Phabricator instance.

rust: remove `FooError` structs with only `kind: FooErrorKind` enum field
ClosedPublic

Authored by SimonSapin on Jan 26 2021, 2:59 PM.

Details

Summary

Use the enum directly as FooError instead.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

SimonSapin created this revision.Jan 26 2021, 2:59 PM
Alphare accepted this revision.Jan 29 2021, 7:57 AM
Alphare added a subscriber: Alphare.

...yeah I have no idea why we did it that way in the first place, thanks.

pulkit accepted this revision.Jan 31 2021, 2:41 PM
This revision is now accepted and ready to land.Jan 31 2021, 2:41 PM