commit 6fa7d8216f8325f62d64df4786071306456e6af9
parent d6937cbd6e4fee246a2951b20becfd67080dfcb2
Author: Zack Newman <zack@philomathiclife.com>
Date: Fri, 5 Jun 2026 17:00:14 -0600
update deps, msrv, and docs
Diffstat:
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
@@ -9,8 +9,8 @@ license = "MIT OR Apache-2.0"
name = "priv_sep"
readme = "README.md"
repository = "https://git.philomathiclife.com/repos/priv_sep/"
-rust-version = "1.93.1"
-version = "3.0.0-alpha.5.0"
+rust-version = "1.96.0"
+version = "3.0.0-alpha.5.1"
[lints.rust]
deprecated-safe = { level = "deny", priority = -1 }
@@ -33,6 +33,7 @@ deref-into-dyn-supertrait = { level = "deny", priority = -1 }
ffi-unwind-calls = { level = "deny", priority = -1 }
#fuzzy-provenance-casts = { level = "deny", priority = -1 }
impl-trait-redundant-captures = { level = "deny", priority = -1 }
+linker-info = { level = "deny", priority = -1 }
linker-messages = { level = "deny", priority = -1 }
#lossy-provenance-casts = { level = "deny", priority = -1 }
macro-use-extern-crate = { level = "deny", priority = -1 }
@@ -112,7 +113,7 @@ targets = [
]
[dev-dependencies]
-tokio = { version = "1.50.0", default-features = false, features = ["macros", "net", "rt"] }
+tokio = { version = "1.52.3", default-features = false, features = ["macros", "net", "rt"] }
### FEATURES #################################################################
diff --git a/src/lib.rs b/src/lib.rs
@@ -871,10 +871,10 @@ impl UserInfo {
/// is returned, then the following will occur:
///
/// * If [`alloc`](./index.html#alloc) is not enabled, then the error is returned.
- /// * If [`alloc`](./index.html#alloc) is enabled and a 16-bit architecture is used, then a heap-allocated buffer of 16 KiB
- /// is used. If this errors, then the error is returned.
- /// * If [`alloc`](./index.html#alloc) is enabled and a non-16-bit architecture is used, then a heap-allocated buffer of 1 MiB
- /// is used. If this errors, then the error is returned.
+ /// * If [`alloc`](./index.html#alloc) is enabled and a 16-bit architecture is used, then a heap-allocated
+ /// buffer of 16 KiB is used. If this errors, then the error is returned.
+ /// * If [`alloc`](./index.html#alloc) is enabled and a non-16-bit architecture is used, then a heap-allocated
+ /// buffer of 1 MiB is used. If this errors, then the error is returned.
///
/// # Errors
///
@@ -884,7 +884,7 @@ impl UserInfo {
///
/// ```no_run
/// # use priv_sep::UserInfo;
- /// assert!(UserInfo::new(c"root")?.map_or(false, |info| info.is_root()));
+ /// assert!(UserInfo::new(c"root")?.is_some_and(|info| info.is_root()));
/// # Ok::<_, priv_sep::Errno>(())
/// ```
#[inline]