mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-28 21:00:59 +00:00

which was just [recently stabilized in rust 1.62.0][1] and hence raises the MSRV to 1.62.0 for all HALs. Use `bool::then` instead, which takes a closure instead of a parameter but has the same effect otherwise and is available [since rust 1.50.0][2]. [1]: https://github.com/rust-lang/rust/pull/96628 [2]: https://doc.rust-lang.org/stable/std/primitive.bool.html#method.then