calc_rational

CLI calculator for rational numbers.
git clone https://git.philomathiclife.com/repos/calc_rational
Log | Files | Refs | README

commit 5965853d9fd0dff7286a9d2a4584ac0bcc1b7b2d
parent cd048cac00687302160bd3a524e1870cb4b0a4d0
Author: Zack Newman <zack@philomathiclife.com>
Date:   Sun, 17 Sep 2023 10:08:36 -0600

update priv_sep

Diffstat:
MCargo.toml | 4++--
Msrc/main.rs | 2+-
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 = "calc_rational" readme = "README.md" repository = "https://git.philomathiclife.com/repos/calc_rational/" -version = "0.6.0" +version = "0.7.0" [lib] name = "calc_lib" @@ -24,7 +24,7 @@ num-bigint = { version = "0.4.4", default-features = false } num-integer = { version = "0.1.45", default-features = false } num-rational = { version = "0.4.1", default-features = false, features = ["num-bigint"] } num-traits = { version = "0.2.16", default-features = false } -priv_sep = { version = "0.5.0", default-features = false, features = ["openbsd"], optional = true } +priv_sep = { version = "0.6.0", default-features = false, features = ["openbsd"], optional = true } rand = { version = "0.8.5", default-features = false, features = ["std", "std_rng"], optional = true } [build-dependencies] diff --git a/src/main.rs b/src/main.rs @@ -228,7 +228,7 @@ fn main() -> Result<(), Err> { #[cfg(all(feature = "priv_sep", target_os = "openbsd"))] #[inline] fn privsep() -> Result<(), Err> { - priv_sep::pledge(Some([Promise::Stdio])).map_err(Err::Pledge) + priv_sep::pledge(Some([Promise::Stdio].as_slice())).map_err(Err::Pledge) } /// Returns Ok. #[allow(clippy::unnecessary_wraps)]