summaryrefslogtreecommitdiffstats
path: root/tokio/tests
diff options
context:
space:
mode:
authorTaiki Endo <te316e89@gmail.com>2020-10-11 16:31:26 +0900
committerGitHub <noreply@github.com>2020-10-11 09:31:26 +0200
commitb047f647b70acaedb282dabf5dd3a28ee90c2060 (patch)
tree110c8cb6de395a72adfbf3d6e3cd25aa2760774e /tokio/tests
parent2e05399f4b6be41680036cc158348973689840ca (diff)
net: make UCred fields private (#2936)
Diffstat (limited to 'tokio/tests')
-rw-r--r--tokio/tests/uds_cred.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio/tests/uds_cred.rs b/tokio/tests/uds_cred.rs
index c02b2aee..5bd97fc5 100644
--- a/tokio/tests/uds_cred.rs
+++ b/tokio/tests/uds_cred.rs
@@ -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);
}