about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-01-18 17:17:41 +0100
committerSamuel Tardieu <sam@rfc1149.net>2025-01-23 00:28:09 +0100
commita03242f8e0e7ac1d15b2e78568dcbb5e92e9f258 (patch)
tree1fdc2f78482102ade096ef22f07edb7b29cda647 /tests/codegen/patchable-function-entry
parent06221e653ca57a51b94a794cd99c49c8cba68ff9 (diff)
downloadrust-a03242f8e0e7ac1d15b2e78568dcbb5e92e9f258.tar.gz
rust-a03242f8e0e7ac1d15b2e78568dcbb5e92e9f258.zip
Move `manual_ok_or` from pedantic to style
`manual_ok_or` covers the same case that were covered by
`option_map_or_err_ok` which is not deprecated. The latter was in the
"style" category. Also, the lint is machine applicable, and leads to
shorter and more readable code, so "style" is appropriate.

The only difference is that the η-expanded form of `Result::Ok()` was
not covered by `option_map_or_err_ok` while it is by `manual_ok_or`, so
the category change may expose some new occurrences.
Diffstat (limited to 'tests/codegen/patchable-function-entry')
0 files changed, 0 insertions, 0 deletions