Sha256: f9088c2d7afafa64ff730b629272045b776bfafc2f5957508242da630635f2e1
Contents?: true
Size: 271 Bytes
Versions: 38
Compression:
Stored size: 271 Bytes
Contents
use anyhow::{bail, Result}; use std::io; pub fn bail_literal() -> Result<()> { bail!("oh no!"); } pub fn bail_fmt() -> Result<()> { bail!("{} {}!", "oh", "no"); } pub fn bail_error() -> Result<()> { bail!(io::Error::new(io::ErrorKind::Other, "oh no!")); }
Version data entries
38 entries across 38 versions & 1 rubygems