flipperzero-rs / flipperzero

Rust on the Flipper Zero
MIT License
518 stars 34 forks source link

Change `Status::err_or_else` to use `Fn(i32) -> T` #183

Closed dcoles closed 3 weeks ago

dcoles commented 1 month ago

Rather than a closure that takes a Status, take the status code. This allows easier chaining of types (e.g. X::from).

Follow-up from #180.