From c47d0a1e6ee831d00fe7a45ca86de280829a6ce0 Mon Sep 17 00:00:00 2001 From: Bauke Date: Fri, 28 Oct 2022 14:03:32 +0200 Subject: [PATCH] Implement Default for ExitAction. --- source/config/exit_action.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/config/exit_action.rs b/source/config/exit_action.rs index 811baea..0ba08cd 100644 --- a/source/config/exit_action.rs +++ b/source/config/exit_action.rs @@ -9,3 +9,9 @@ pub enum ExitAction { Continue, Stop, } + +impl Default for ExitAction { + fn default() -> Self { + Self::Stop + } +}