Skip to content

Rename ok_or_eyre to ok_or_report in OptionExt trait#272

Open
nik-rev wants to merge 1 commit intoeyre-rs:masterfrom
nik-contrib:ok-or-report
Open

Rename ok_or_eyre to ok_or_report in OptionExt trait#272
nik-rev wants to merge 1 commit intoeyre-rs:masterfrom
nik-contrib:ok-or-report

Conversation

@nik-rev
Copy link
Copy Markdown
Contributor

@nik-rev nik-rev commented Mar 22, 2026

Considering eyre plans to release 1.0 some time soon (#269), it's a good time to clean up the API

After renaming eyre! to report! (#271), renaming ok_or_eyre to ok_or_report will mean we are consistent with the naming of ok_or_report method, and have more of a parallel between static error creation in the None case of an option, and dynamic error creation:

opt.ok_or_report("failed reading file")
opt.ok_or_else(|| report!("failed reading file: {path}"))

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.

1 participant