summaryrefslogtreecommitdiff
path: root/rust/src/backgroundtask.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/backgroundtask.rs')
-rw-r--r--rust/src/backgroundtask.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/backgroundtask.rs b/rust/src/backgroundtask.rs
index d99ec6b1..26480e7e 100644
--- a/rust/src/backgroundtask.rs
+++ b/rust/src/backgroundtask.rs
@@ -61,15 +61,15 @@ impl BackgroundTask {
unsafe { BnString::from_raw(BNGetBackgroundTaskProgressText(self.handle)) }
}
- pub fn cancel(&mut self) {
+ pub fn cancel(&self) {
unsafe { BNCancelBackgroundTask(self.handle) }
}
- pub fn finish(&mut self) {
+ pub fn finish(&self) {
unsafe { BNFinishBackgroundTask(self.handle) }
}
- pub fn set_progress_text<S: BnStrCompatible>(&mut self, text: S) {
+ pub fn set_progress_text<S: BnStrCompatible>(&self, text: S) {
let progress_text = text.as_bytes_with_nul();
unsafe {