summaryrefslogtreecommitdiff
path: root/rust/src/background_task.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2026-02-19 11:20:26 -0800
committerMason Reed <35282038+emesare@users.noreply.github.com>2026-02-23 00:09:44 -0800
commitbfbb878c05220e1697aa550a23ad59911e546c17 (patch)
tree6d9388bfff7a3158f01cfd124810b5efe9f04f8a /rust/src/background_task.rs
parent34daa38fe94e8eaf6951d8c0429e971afbfce156 (diff)
[Rust] Fix `OwnedBackgroundTaskGuard` requiring mutable self
Diffstat (limited to 'rust/src/background_task.rs')
-rw-r--r--rust/src/background_task.rs4
1 files changed, 2 insertions, 2 deletions
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);
}
}