summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src')
-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);
}
}