Skip to content
Myr

Merge pull request #437 from Ibitier/inline-ok-helper

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

Add #[inline] to anyhow::Ok helper

authored by David Tolnay · committed by GitHub · parents 54036cc, 85d9ea9 · 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