Add default to on_failure.

This commit is contained in:
Bauke 2022-10-28 14:08:27 +02:00
parent bff78ccc21
commit 1084bd08e2
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ pub struct PreCommit {
pub name: Option<String>,
/// What to do when the hook exits with a non-zero status code.
#[serde(default)]
pub on_failure: ExitAction,
/// Task to perform when this hook is called.