rusticata / x509-parser

X.509 parser written in pure Rust. Fast, zero-copy, safe.
Other
206 stars 67 forks source link

x509: replace `fold` on `Try` types with `try_fold`. #147

Closed cpu closed 8 months ago

cpu commented 1 year ago

Latest clippy is flagging two instances of using fold on a type implementing Try, recommending the usage of try_fold instead.

This commit fixes both occurrences to resolve the clippy errors. See https://rust-lang.github.io/rust-clippy/master/index.html#/manual_try_fold for more detail.

chifflier commented 8 months ago

Hi, Thank you for your PR. It seems to even simplify the code, so I like it :)

Merged, thanks