From b8e5901d97e6ef788071630ed251aaf0d94342b3 Mon Sep 17 00:00:00 2001 From: emma Date: Tue, 10 Sep 2024 17:09:46 -0600 Subject: [PATCH] libopenbsd.rs(3): adds default value for Promises --- src/libopenbsd.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libopenbsd.rs b/src/libopenbsd.rs index f3e60b9..613aa68 100644 --- a/src/libopenbsd.rs +++ b/src/libopenbsd.rs @@ -43,6 +43,10 @@ impl Promises { } } +impl Default for Promises { + fn default() -> Self { Promises::new("") } +} + pub fn pledge( promises: Option, execpromises: Option ) -> Result<(), Error> {