From 9247839cccc3f502ce3a89a9c9faaa5554f99101 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Sun, 5 Oct 2025 09:44:34 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(message):=20renam?= =?UTF-8?q?e=20Message=20to=20MessageList?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - rename Message struct to MessageList for clarity - reflect the change in the instantiation --- src/message_cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/message_cli.rs b/src/message_cli.rs index 3b300ef..f710971 100644 --- a/src/message_cli.rs +++ b/src/message_cli.rs @@ -1,5 +1,5 @@ use clap::Parser; -use cull_gmail::{Error, Labels, Message}; +use cull_gmail::{Error, Labels, MessageList}; /// Command line options for the list subcommand #[derive(Debug, Parser)] @@ -20,7 +20,7 @@ pub struct MessageCli { impl MessageCli { pub(crate) async fn run(&self, credential_file: &str) -> Result<(), Error> { - let mut list = Message::new(credential_file).await?; + let mut list = MessageList::new(credential_file).await?; if !self.labels.is_empty() { // add labels if any specified