diff options
Diffstat (limited to 'rust/src/background_task.rs')
| -rw-r--r-- | rust/src/background_task.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/background_task.rs b/rust/src/background_task.rs index c818d5b9..5d30f27d 100644 --- a/rust/src/background_task.rs +++ b/rust/src/background_task.rs @@ -71,8 +71,8 @@ impl BackgroundTask { unsafe { BNFinishBackgroundTask(self.handle) } } - pub fn progress_text(&self) -> BnString { - unsafe { BnString::from_raw(BNGetBackgroundTaskProgressText(self.handle)) } + pub fn progress_text(&self) -> String { + unsafe { BnString::into_string(BNGetBackgroundTaskProgressText(self.handle)) } } pub fn set_progress_text<S: BnStrCompatible>(&self, text: S) { |
