From 868689aef277ce560745fecc3bb8653665162fee Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sun, 19 Oct 2025 18:42:03 -0400 Subject: [Rust] Misc clippy lints --- rust/src/logger.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/src/logger.rs') diff --git a/rust/src/logger.rs b/rust/src/logger.rs index a4046212..2a6db188 100644 --- a/rust/src/logger.rs +++ b/rust/src/logger.rs @@ -96,7 +96,7 @@ impl Ref { /// you should use [`Ref::init`] to initialize the `log` compatible logger. pub fn send_log(&self, level: Level, msg: &str) { use binaryninjacore_sys::BNLog; - if let Ok(msg) = CString::new(format!("{}", msg)) { + if let Ok(msg) = CString::new(msg) { let logger_name = self.name().to_cstr(); unsafe { BNLog( -- cgit v1.3.1