Skip to content

Commit dc49471

Browse files
negasoraspoonmilk
authored andcommitted
Make StructureBuilder.finalize immutable
1 parent db40c32 commit dc49471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,7 @@ impl StructureBuilder {
13831383
}
13841384

13851385
// TODO: Document the width adjustment with alignment.
1386-
pub fn finalize(&mut self) -> Ref<Structure> {
1386+
pub fn finalize(&self) -> Ref<Structure> {
13871387
let raw_struct_ptr = unsafe { BNFinalizeStructureBuilder(self.handle) };
13881388
unsafe { Structure::ref_from_raw(raw_struct_ptr) }
13891389
}

0 commit comments

Comments
 (0)