diff options
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/types.rs | 2 |
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) } } |
