Skip to content

Commit 6bfda97

Browse files
committed
Remove unnecessary cast in UnixCredentials::groups
1 parent 7287f4f commit 6bfda97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/socket/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ cfg_if! {
487487
pub fn groups(&self) -> &[libc::gid_t] {
488488
unsafe {
489489
std::slice::from_raw_parts(
490-
self.0.cmcred_groups.as_ptr().cast(),
490+
self.0.cmcred_groups.as_ptr(),
491491
self.0.cmcred_ngroups as _
492492
)
493493
}

0 commit comments

Comments
 (0)