summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2025-06-18 14:30:53 -0400
committerJosh Ferrell <josh@vector35.com>2025-06-18 14:30:53 -0400
commit46e058a98054693037b9accba4265f8481e60231 (patch)
tree6d6d40455a14edb7447bf5076e31fdba134291ad /rust/src
parent90d5791ef7b211ca8f792eb64f9452f6df92d1e0 (diff)
Make StructureBuilder.finalize immutable
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/types.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/types.rs b/rust/src/types.rs
index 5a39eb27..7fdbe0c6 100644
--- a/rust/src/types.rs
+++ b/rust/src/types.rs
@@ -1383,7 +1383,7 @@ impl StructureBuilder {
}
// TODO: Document the width adjustment with alignment.
- pub fn finalize(&mut self) -> Ref<Structure> {
+ pub fn finalize(&self) -> Ref<Structure> {
let raw_struct_ptr = unsafe { BNFinalizeStructureBuilder(self.handle) };
unsafe { Structure::ref_from_raw(raw_struct_ptr) }
}