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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user