1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-18 10:23:52 +00:00

Document safety for user_information

This commit is contained in:
Isaiah Inuwa
2025-12-18 13:41:54 -06:00
parent bc4458b88c
commit be70a18a2d

View File

@@ -472,8 +472,8 @@ impl PluginMakeCredentialRequest {
}
pub fn user_information(&self) -> UserEntityInformation<'_> {
// SAFETY: When this is constructed using Self::try_from_ptr(), the caller must ensure that
// pUserInformation is valid.
// SAFETY: When this is constructed using Self::try_from_ptr(), the Windows decode API
// constructs valid pointers.
let ptr = self.as_ref().pUserInformation;
assert!(!ptr.is_null());
unsafe {