Skip to content

Commit

Permalink
Fix unwrap comment for CBB_init_fixed
Browse files Browse the repository at this point in the history
Change-Id: I893930a8d23f49968883e4c9b8425ebcc5a2d23b
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/75007
Auto-Submit: David Benjamin <[email protected]>
Reviewed-by: Adam Langley <[email protected]>
Commit-Queue: David Benjamin <[email protected]>
  • Loading branch information
davidben authored and Boringssl LUCI CQ committed Jan 17, 2025
1 parent 6612078 commit d4b6eb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rust/bssl-crypto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,7 @@ fn cbb_to_vec<F: FnOnce(*mut bssl_sys::CBB)>(len: usize, func: F) -> Vec<u8> {
bssl_sys::CBB_init_fixed(cbb, boxed.as_mut_ptr() as *mut u8, len) == 1
})
}
// `CBB_init` only fails if out of memory, which isn't something that this
// crate handles.
// `CBB_init_fixed` never fails and does not allocate.
.unwrap();

func(&mut cbb);
Expand Down

0 comments on commit d4b6eb5

Please sign in to comment.