You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
Change Formatter to return Result<FormatElement, FormatError> instead of an Option. Prevents accidentally returning when skipping an optional element. enum FormatError { MissingNode, UnknownNode } . Implement From<SyntaxError> for FormatError so that the try operator works nicely.
The text was updated successfully, but these errors were encountered:
Working on this as it's a direct consequence of #1731
ematipico
changed the title
Change Formatter to return Result<FormatElement, FormatError> instead of an Option. Prevents accidentally returning when skipping an optional element. enum FormatError { MissingNode, UnknownNode } . Implement From<SyntaxError> for FormatError so that the try operator works nicely.
Change formatter result type
Nov 1, 2021
The text was updated successfully, but these errors were encountered: