Skip to content
Myr

Add #[inline] to anyhow::Ok helper

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

authored by Dennis Koch · committed by Dennis Koch · parent 54036cc · Browse files · 1 file+1 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+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:src/lib.rs+1 added
644 unmodified lines
645/// | |646/// | consider giving this pattern the explicit type `std::result::Result<i32, E>`, where the type parameter `E` is specified647/// ```648#[allow(non_snake_case)]649#[inline]650pub fn Ok<T>(value: T) -> Result<T> {651 Result::Ok(value)652}653
75 unmodified lines