diff options
| author | KyleMiles <krm504@nyu.edu> | 2021-05-11 22:51:38 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2021-05-11 22:51:38 -0400 |
| commit | 21da3f95b00431f4d10d8b5e67ee402bffde129c (patch) | |
| tree | bd7a738ca45b4aac7572f5ecee8924cd3feaebf2 /rust/src/backgroundtask.rs | |
| parent | 4bd1f6b1477b910b580a0bcfcde118bcefc1ddc0 (diff) | |
Rust API; More setting support, fix edgecase in open_view_with_options, and fixed using mut for const correctness (mut != ~const)
Diffstat (limited to 'rust/src/backgroundtask.rs')
| -rw-r--r-- | rust/src/backgroundtask.rs | 6 |
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 { |
