From 3281d3ef557639571abe9ebb297e2567555a81dd Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Mon, 18 Nov 2024 09:45:44 +0100 Subject: [PATCH] tee: fix warning from ref_as_ptr lint in test --- tests/by-util/test_tee.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/by-util/test_tee.rs b/tests/by-util/test_tee.rs index c32759ed4..4f2437ace 100644 --- a/tests/by-util/test_tee.rs +++ b/tests/by-util/test_tee.rs @@ -172,7 +172,7 @@ mod linux_only { let mut fds: [c_int; 2] = [0, 0]; assert!( - (unsafe { libc::pipe(&mut fds as *mut c_int) } == 0), + (unsafe { libc::pipe(std::ptr::from_mut::(&mut fds[0])) } == 0), "Failed to create pipe" );