mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-08-28 04:10:09 -04:00
7590e4f21d
Use `Option::is_some_and` and `Result::is_ok_and` in the compiler `.is_some_and(..)`/`.is_ok_and(..)` replace `.map_or(false, ..)` and `.map(..).unwrap_or(false)`, making the code more readable. This PR is a sibling of https://github.com/rust-lang/rust/pull/111873#issuecomment-1561316515