summaryrefslogtreecommitdiff
path: root/rust/src/logger.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/logger.rs')
-rw-r--r--rust/src/logger.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/src/logger.rs b/rust/src/logger.rs
index f77cb52c..31696d25 100644
--- a/rust/src/logger.rs
+++ b/rust/src/logger.rs
@@ -137,6 +137,7 @@ unsafe impl Sync for Logger {}
/// This is typically used in headless usage. It can also be used to temporarily log core
/// messages to something like a file while some analysis is occurring, once the [`LogGuard`] is
/// dropped, the listener will be unregistered.
+#[must_use]
pub fn register_log_listener<L: LogListener>(listener: L) -> LogGuard<L> {
use binaryninjacore_sys::BNRegisterLogListener;