From 46e058a98054693037b9accba4265f8481e60231 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Wed, 18 Jun 2025 14:30:53 -0400 Subject: Make StructureBuilder.finalize immutable --- rust/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/src') 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 { + pub fn finalize(&self) -> Ref { let raw_struct_ptr = unsafe { BNFinalizeStructureBuilder(self.handle) }; unsafe { Structure::ref_from_raw(raw_struct_ptr) } } -- cgit v1.3.1