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.