You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be cool to have equivalents to ok and err for some and none results.
So like this:
/// Logs `Some` results at the `info` level and `None` results at the `error` level.#[logcall(some = "info", none = "error")]fndivide(a:i32,b:i32) -> Option<i32>{if b == 0{None}else{Some(a / b)}}
And conversely, if only some is specified, it would not log on None or vice versa.
The text was updated successfully, but these errors were encountered:
It would be cool to have equivalents to
ok
anderr
forsome
andnone
results.So like this:
And conversely, if only
some
is specified, it would not log onNone
or vice versa.The text was updated successfully, but these errors were encountered: