Skip to content
Myr

Call out that returning anyhow::Result from main is ok

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent bab03c1 · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:src/lib.rs+4 added
183 unmodified lines
184pub use crate::error::{Chain, Error};185186/// `Result<T, Error>`187///188/// This is a reasonable return type to use throughout your application but also189/// for `fn main`; if you do, failures will be printed along with any190/// [context][Context] and a backtrace if one was captured.191///192/// # Example193///194/// ```195/// # pub trait Deserialize {}
152 unmodified lines