priv_sep

Privilege separation library.
git clone https://git.philomathiclife.com/repos/priv_sep
Log | Files | Refs | README

commit 7d4e2592af3a990ccb167b24df0cf92b820891a0
parent 8c2e4ed650462154c2c315a5fe8f40669b37a2db
Author: Zack Newman <zack@philomathiclife.com>
Date:   Thu, 14 Sep 2023 08:56:44 -0600

correct doc mistake linking to the wrong error type

Diffstat:
MCargo.toml | 2+-
Msrc/lib.rs | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0" name = "priv_sep" readme = "README.md" repository = "https://git.philomathiclife.com/repos/priv_sep/" -version = "0.5.0" +version = "0.5.1" [lib] name = "priv_sep" diff --git a/src/lib.rs b/src/lib.rs @@ -186,7 +186,7 @@ impl Display for Promise { /// /// # Errors /// -/// Returns [`Error`] iff `pledge(2)` errors. +/// Returns [`io::Error`] iff `pledge(2)` errors. #[inline] #[allow(unsafe_code, clippy::indexing_slicing, clippy::option_if_let_else)] pub fn pledge<const N: usize>(promises: Option<[Promise; N]>) -> Result<(), io::Error> { @@ -367,7 +367,7 @@ fn unveil<P: AsRef<Path>, const N: usize>( /// /// # Errors /// -/// Returns [`Error`] when a problem occurs. +/// Returns [`io::Error`] when a problem occurs. #[allow(clippy::unreachable)] #[inline] pub fn unveil_no_more() -> Result<(), io::Error> {