Add default to on_failure.
This commit is contained in:
parent
bff78ccc21
commit
1084bd08e2
|
@ -12,6 +12,7 @@ pub struct PreCommit {
|
||||||
pub name: Option<String>,
|
pub name: Option<String>,
|
||||||
|
|
||||||
/// What to do when the hook exits with a non-zero status code.
|
/// What to do when the hook exits with a non-zero status code.
|
||||||
|
#[serde(default)]
|
||||||
pub on_failure: ExitAction,
|
pub on_failure: ExitAction,
|
||||||
|
|
||||||
/// Task to perform when this hook is called.
|
/// Task to perform when this hook is called.
|
||||||
|
|
Loading…
Reference in New Issue