Merge pull request #437 from Ibitier/inline-ok-helper Add #[inline] to anyhow::Ok helper
diff --git a/src/lib.rs b/src/lib.rs index 906b056..65cca3c 100644 --- a/src/lib.rs +++ b/src/lib.rs
@@ -646,6 +646,7 @@ /// | consider giving this pattern the explicit type `std::result::Result<i32, E>`, where the type parameter `E` is specified /// ``` #[allow(non_snake_case)] +#[inline] pub fn Ok<T>(value: T) -> Result<T> { Result::Ok(value) }