MCPcopy Create free account
hub / github.com/GitoxideLabs/learning-rust-with-gitoxide / always_err

Function always_err

errors/src/main.rs:37–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37fn always_err() -> anyhow::Result<()> {
38 // anyhow::bail!("hello, failure")
39 Err(anyhow::anyhow!("hello too"))
40}
41
42fn do_it() -> anyhow::Result<()> {
43 let v = Adder(&126).add_one()?;

Callers 1

do_itFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected