summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
authormason <35282038+emesare@users.noreply.github.com>2024-07-28 13:24:18 -0400
committerGitHub <noreply@github.com>2024-07-28 13:24:18 -0400
commit9d73e9d7930f20339f9582e55544f0af7aeadd23 (patch)
tree38b287cac3731612be283ad0b4060e059b80bc27 /rust/src
parent361574240fff979a76adaccaf9809f21a1f6ab12 (diff)
Fix `is_shutdown_requested` fn signature
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/headless.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/headless.rs b/rust/src/headless.rs
index fdde2608..1de41aec 100644
--- a/rust/src/headless.rs
+++ b/rust/src/headless.rs
@@ -99,8 +99,8 @@ pub fn shutdown() {
unsafe { binaryninjacore_sys::BNShutdown() };
}
-pub fn is_shutdown_requested() {
- unsafe { binaryninjacore_sys::BNIsShutdownRequested() };
+pub fn is_shutdown_requested() -> bool {
+ unsafe { binaryninjacore_sys::BNIsShutdownRequested() }
}
/// Prelued-postlued helper function (calls [`init`] and [`shutdown`] for you)