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