From bfbb878c05220e1697aa550a23ad59911e546c17 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Thu, 19 Feb 2026 11:20:26 -0800 Subject: [Rust] Fix `OwnedBackgroundTaskGuard` requiring mutable self --- rust/src/background_task.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src') diff --git a/rust/src/background_task.rs b/rust/src/background_task.rs index 94cc3368..79aec683 100644 --- a/rust/src/background_task.rs +++ b/rust/src/background_task.rs @@ -30,7 +30,7 @@ pub struct OwnedBackgroundTaskGuard { } impl OwnedBackgroundTaskGuard { - pub fn cancel(&mut self) { + pub fn cancel(&self) { self.task.cancel(); } @@ -38,7 +38,7 @@ impl OwnedBackgroundTaskGuard { self.task.is_cancelled() } - pub fn set_progress_text(&mut self, text: &str) { + pub fn set_progress_text(&self, text: &str) { self.task.set_progress_text(text); } } -- cgit v1.3.1