From 9b84739cd5d24c4439f9e009724454128d8c448a Mon Sep 17 00:00:00 2001 From: Josh Watson Date: Mon, 15 Mar 2021 10:19:02 -0700 Subject: Resolve Kyle's comments --- 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 363b91a8..dca9a5d4 100644 --- a/rust/src/backgroundtask.rs +++ b/rust/src/backgroundtask.rs @@ -28,7 +28,7 @@ pub struct BackgroundTask { } impl BackgroundTask { - pub unsafe fn from_raw(handle: *mut BNBackgroundTask) -> Self { + pub(crate) unsafe fn from_raw(handle: *mut BNBackgroundTask) -> Self { debug_assert!(!handle.is_null()); Self { handle } @@ -67,7 +67,7 @@ impl BackgroundTask { unsafe { BnString::from_raw(BNGetBackgroundTaskProgressText(self.handle)) } } - pub fn cancel(&self) { + pub fn cancel(&mut self) { unsafe { BNCancelBackgroundTask(self.handle) } } -- cgit v1.3.1