Skip to content

Commit

Permalink
fixup: fix MSRV breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed Dec 5, 2024
1 parent 987e586 commit 764ff5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/sys/test_sockopt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ fn test_so_type_unknown() {
#[cfg_attr(qemu, ignore)]
fn test_tcp_congestion() {
use std::ffi::OsString;
use std::os::unix::ffi::OsStrExt;

let fd = socket(
AddressFamily::Inet,
Expand All @@ -268,7 +269,7 @@ fn test_tcp_congestion() {
.unwrap();

let val = getsockopt(&fd, sockopt::TcpCongestion).unwrap();
let bytes = val.as_os_str().as_encoded_bytes();
let bytes = val.as_os_str().as_bytes();
for b in bytes.iter() {
assert_ne!(
*b, 0,
Expand Down

0 comments on commit 764ff5d

Please sign in to comment.