diff options
| author | KyleMiles <krm504@nyu.edu> | 2023-01-05 17:42:09 -0500 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2023-01-06 16:29:58 -0500 |
| commit | 676f6f8d8f26ad12de74638315792db0aa25df70 (patch) | |
| tree | 520b839dd48fb838493abe5c7cc23fc9c0683816 /rust/src/debuginfo.rs | |
| parent | a154e45cce79b0c2264c1e1cd37a3d1bf5bc6154 (diff) | |
Rust API: Clean up APIs by removing artificial mut constriants
Diffstat (limited to 'rust/src/debuginfo.rs')
| -rw-r--r-- | rust/src/debuginfo.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<S: BnStrCompatible>(&mut self, name: S, new_type: &Type) -> bool { + pub fn add_type<S: BnStrCompatible>(&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<S: BnStrCompatible>(&mut self, new_func: DebugFunctionInfo<S>) -> bool { + pub fn add_function<S: BnStrCompatible>(&self, new_func: DebugFunctionInfo<S>) -> bool { let short_name_bytes = new_func.short_name.map(|name| name.into_bytes_with_nul()); let short_name = short_name_bytes .as_ref() |
