From 9018fa02d4a3ebbf40b5ee5a8254eb753ae13ea6 Mon Sep 17 00:00:00 2001 From: Jeremiah Russell Date: Mon, 13 Oct 2025 14:00:31 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(processor):=20use?= =?UTF-8?q?=20reference=20for=20GmailClient=20in=20processor=20builder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - modify the `builder` function to accept a reference to `GmailClient` rather than cloning it - this avoids unnecessary cloning of the `GmailClient` --- src/processor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/processor.rs b/src/processor.rs index e378c4c..ed77df2 100644 --- a/src/processor.rs +++ b/src/processor.rs @@ -57,7 +57,7 @@ impl<'a> ProcessorBuilder<'a> { impl<'a> Processor<'a> { /// Initialise a new processor - pub fn builder(client: GmailClient, rule: &'a EolRule) -> ProcessorBuilder<'a> { + pub fn builder(client: &GmailClient, rule: &'a EolRule) -> ProcessorBuilder<'a> { ProcessorBuilder { client: client.clone(), rule,