libopenbsd.rs(3): adds default value for Promises

This commit is contained in:
Emma Tebibyte 2024-09-10 17:09:46 -06:00
parent 62ce288524
commit b8e5901d97
Signed by: emma
GPG Key ID: 06FA419A1698C270

View File

@ -43,6 +43,10 @@ impl Promises {
} }
} }
impl Default for Promises {
fn default() -> Self { Promises::new("") }
}
pub fn pledge( pub fn pledge(
promises: Option<Promises>, execpromises: Option<Promises> promises: Option<Promises>, execpromises: Option<Promises>
) -> Result<(), Error> { ) -> Result<(), Error> {