libopenbsd.rs(3): adds default value for Promises
This commit is contained in:
parent
62ce288524
commit
b8e5901d97
@ -43,6 +43,10 @@ impl Promises {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Promises {
|
||||
fn default() -> Self { Promises::new("") }
|
||||
}
|
||||
|
||||
pub fn pledge(
|
||||
promises: Option<Promises>, execpromises: Option<Promises>
|
||||
) -> Result<(), Error> {
|
||||
|
Loading…
Reference in New Issue
Block a user