summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
authorJosh Watson <josh@joshwatson.com>2021-03-15 10:29:58 -0700
committerKyle Martin <krm504@nyu.edu>2021-03-15 13:35:44 -0400
commita327eb06173d0aa814460842e5280a6bf1edddf1 (patch)
tree6fb16a0017924b6241430e56e169392a1cb86c63 /rust/src
parent9765c0a7353b563007e39bc4a78114d898dc6c37 (diff)
More mut
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 {