From 68b6cba9c1fe75c0f0c00ff0684ef514e16b6916 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Wed, 8 Oct 2025 12:02:53 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(core):=20rename?= =?UTF-8?q?=20EolCmd=20to=20EolAction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - clarifies the purpose as an action to be performed at the end of life --- src/eol_cmd.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/eol_cmd.rs b/src/eol_cmd.rs index 76ff8a5..1e906c9 100644 --- a/src/eol_cmd.rs +++ b/src/eol_cmd.rs @@ -4,7 +4,7 @@ use std::fmt; /// - Trash - move the message to the trash to be automatically deleted by Google /// - Delete - delete the message immediately without allowing rescue from trash #[derive(Debug, Default)] -pub enum EolCmd { +pub enum EolAction { #[default] /// Move the message to the trash Trash, @@ -12,11 +12,11 @@ pub enum EolCmd { Delete, } -impl fmt::Display for EolCmd { +impl fmt::Display for EolAction { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - EolCmd::Trash => write!(f, "trash"), - EolCmd::Delete => write!(f, "delete"), + EolAction::Trash => write!(f, "trash"), + EolAction::Delete => write!(f, "delete"), } } }