From 0bab707b02448871a1cd0a4a5033198bd5ef71fb Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Sat, 11 Oct 2025 06:56:09 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(trash):=20refacto?= =?UTF-8?q?r=20trash=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - separates list preparation and trash execution for better modularity - improves code readability and maintainability --- src/cli/trash_cli.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli/trash_cli.rs b/src/cli/trash_cli.rs index dcd51cd..dbe5461 100644 --- a/src/cli/trash_cli.rs +++ b/src/cli/trash_cli.rs @@ -40,6 +40,7 @@ impl TrashCli { list.message_list().max_results() ); - list.run(self.pages).await + list.prepare(self.pages).await?; + list.batch_trash().await } }