also as_ptr() is crate visible only

This commit is contained in:
NikVolf 2018-08-27 17:27:29 +03:00
parent 43c1f71cf6
commit a124eaf24f
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ impl SecurityAttributes {
}
/// Return raw handle of security attributes.
pub unsafe fn as_ptr(&mut self) -> PSECURITY_ATTRIBUTES {
pub(crate) unsafe fn as_ptr(&mut self) -> PSECURITY_ATTRIBUTES {
match self.attributes.as_mut() {
Some(attributes) => attributes.as_ptr(),
None => ptr::null_mut(),