From 676f6f8d8f26ad12de74638315792db0aa25df70 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Thu, 5 Jan 2023 17:42:09 -0500 Subject: Rust API: Clean up APIs by removing artificial mut constriants --- rust/src/debuginfo.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src/debuginfo.rs') diff --git a/rust/src/debuginfo.rs b/rust/src/debuginfo.rs index 32b478fb..37335255 100644 --- a/rust/src/debuginfo.rs +++ b/rust/src/debuginfo.rs @@ -717,7 +717,7 @@ impl DebugInfo { } /// Adds a type scoped under the current parser's name to the debug info - pub fn add_type(&mut self, name: S, new_type: &Type) -> bool { + pub fn add_type(&self, name: S, new_type: &Type) -> bool { let name = name.into_bytes_with_nul(); unsafe { BNAddDebugType( @@ -729,7 +729,7 @@ impl DebugInfo { } /// Adds a function scoped under the current parser's name to the debug info - pub fn add_function(&mut self, new_func: DebugFunctionInfo) -> bool { + pub fn add_function(&self, new_func: DebugFunctionInfo) -> bool { let short_name_bytes = new_func.short_name.map(|name| name.into_bytes_with_nul()); let short_name = short_name_bytes .as_ref() -- cgit v1.3.1