From 1ccdc65d307385ee10610ed4acfd29940d28f06a Mon Sep 17 00:00:00 2001 From: emma Date: Tue, 10 Sep 2024 17:13:20 -0600 Subject: [PATCH] rpn(1): uses default for promises --- src/rpn.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpn.rs b/src/rpn.rs index 7383201..b2c1bcc 100644 --- a/src/rpn.rs +++ b/src/rpn.rs @@ -231,7 +231,7 @@ fn main() -> ExitCode { #[cfg(target_os="openbsd")] { let promises = Promises::new("stdio unveil"); - if let Err(e) = pledge(Some(promises), None) { + if let Err(e) = pledge(Some(promises), Some(Promises::default())) { return err(&argv[0], &e, Some(EX_OSERR)); }