diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ae4522..8860e47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,6 +46,7 @@ jobs: with: name: Cargo.lock path: Cargo.lock + continue-on-error: true build: name: Rust ${{matrix.rust}} diff --git a/Cargo.toml b/Cargo.toml index 0cd83c5..4b2c7ca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anyhow" -version = "1.0.93" +version = "1.0.94" authors = ["David Tolnay "] categories = ["rust-patterns", "no-std"] description = "Flexible concrete Error type built on std::error::Error" diff --git a/src/lib.rs b/src/lib.rs index c6dd4ce..d3d0767 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -206,7 +206,7 @@ //! function that returns Anyhow's error type, as the trait that `?`-based error //! conversions are defined by is only available in std in those old versions. -#![doc(html_root_url = "https://docs.rs/anyhow/1.0.93")] +#![doc(html_root_url = "https://docs.rs/anyhow/1.0.94")] #![cfg_attr(error_generic_member_access, feature(error_generic_member_access))] #![no_std] #![deny(dead_code, unused_imports, unused_mut)] @@ -627,11 +627,11 @@ pub trait Context: context::private::Sealed { F: FnOnce() -> C; } -/// Equivalent to Ok::<_, anyhow::Error>(value). +/// Equivalent to `Ok::<_, anyhow::Error>(value)`. /// -/// This simplifies creation of an anyhow::Result in places where type inference -/// cannot deduce the `E` type of the result — without needing to write -/// `Ok::<_, anyhow::Error>(value)`. +/// This simplifies creation of an `anyhow::Result` in places where type +/// inference cannot deduce the `E` type of the result — without needing +/// to write`Ok::<_, anyhow::Error>(value)`. /// /// One might think that `anyhow::Result::Ok(value)` would work in such cases /// but it does not. @@ -646,8 +646,8 @@ pub trait Context: context::private::Sealed { /// | consider giving this pattern the explicit type `std::result::Result`, where the type parameter `E` is specified /// ``` #[allow(non_snake_case)] -pub fn Ok(t: T) -> Result { - Result::Ok(t) +pub fn Ok(value: T) -> Result { + Result::Ok(value) } // Not public API. Referenced by macro-generated code.