From a327eb06173d0aa814460842e5280a6bf1edddf1 Mon Sep 17 00:00:00 2001 From: Josh Watson Date: Mon, 15 Mar 2021 10:29:58 -0700 Subject: More mut --- rust/src/backgroundtask.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src/backgroundtask.rs') 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(&self, text: S) { + pub fn set_progress_text(&mut self, text: S) { let progress_text = text.as_bytes_with_nul(); unsafe { -- cgit v1.3.1