net: make UCred fields private (#2936)

This commit is contained in:
Taiki Endo
2020-10-11 09:31:26 +02:00
committed by GitHub
parent 2e05399f4b
commit b047f647b7
2 changed files with 16 additions and 4 deletions
+2 -2
View File
@@ -25,6 +25,6 @@ async fn test_socket_pair() {
let uid = unsafe { geteuid() };
let gid = unsafe { getegid() };
assert_eq!(cred_a.uid, uid);
assert_eq!(cred_a.gid, gid);
assert_eq!(cred_a.uid(), uid);
assert_eq!(cred_a.gid(), gid);
}