From 1084bd08e2b67b8f500ac23c8939eee5be4a8c8d Mon Sep 17 00:00:00 2001 From: Bauke Date: Fri, 28 Oct 2022 14:08:27 +0200 Subject: [PATCH] Add default to on_failure. --- source/config/pre_commit.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/source/config/pre_commit.rs b/source/config/pre_commit.rs index ab70316..40689a2 100644 --- a/source/config/pre_commit.rs +++ b/source/config/pre_commit.rs @@ -12,6 +12,7 @@ pub struct PreCommit { pub name: Option, /// 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.