Skip to content

Commit dff8c43

Browse files
authored
Merge pull request #437 from Ibitier/inline-ok-helper
Add #[inline] to anyhow::Ok helper
2 parents 54036cc + 85d9ea9 commit dff8c43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ pub trait Context<T, E>: context::private::Sealed {
646646
/// | consider giving this pattern the explicit type `std::result::Result<i32, E>`, where the type parameter `E` is specified
647647
/// ```
648648
#[allow(non_snake_case)]
649+
#[inline]
649650
pub fn Ok<T>(value: T) -> Result<T> {
650651
Result::Ok(value)
651652
}

0 commit comments

Comments
 (0)