fn-error-context 0.2.1

An attribute macro to add context to errors from a function.
Documentation
1
2
3
4
5
6
7
8
9
use fn_error_context::context;

#[context("{}", context.as_ref())]
async fn no_move(context: impl AsRef<str>) -> anyhow::Result<()> {
    context.as_ref();
    Ok(())
}

fn main() {}