Skip to content

Simplify DevicePath to_string return type - #1014

Merged
phip1611 merged 1 commit into
rust-osdev:mainfrom
nicholasbishop:bishop-simplify-to-string
Dec 2, 2023
Merged

phip1611 merged 1 commit into
rust-osdev:mainfrom
nicholasbishop:bishop-simplify-to-string

Conversation

@nicholasbishop

Copy link
Copy Markdown
Member

Instead of returning None for out of memory, add a new variant to DevicePathToTextError and return that. That allows the return type to be a plain Result rather than Result<Option>, simplifying usage.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

Instead of returning `None` for out of memory, add a new variant to
`DevicePathToTextError` and return that. That allows the return type to be a
plain `Result` rather than `Result<Option>`, simplifying usage.
@phip1611
phip1611 added this pull request to the merge queue Dec 2, 2023
Merged via the queue into rust-osdev:main with commit f7b2243 Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants