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
I found something interesting in std, here's an example:
use std::panic::Location;fnvalidate(/*something that you want to validate*/) -> ... {if something_not_valid {let location = Location::caller();returnErr(anyhow!(format!("{location}: ...")));}}
this code produces a message like: src/filename.rs:line:position: ...
it might be helpful to
The text was updated successfully, but these errors were encountered:
I found something interesting in
std
, here's an example:this code produces a message like:
src/filename.rs:line:position: ...
it might be helpful to
The text was updated successfully, but these errors were encountered: