diff --git a/lib/journal/src/concrete/tests.rs b/lib/journal/src/concrete/tests.rs index 1e1d8f4a611..f9d22117c34 100644 --- a/lib/journal/src/concrete/tests.rs +++ b/lib/journal/src/concrete/tests.rs @@ -10,7 +10,7 @@ use rkyv::ser::serializers::{ }; use wasmer_wasix_types::wasi; -pub fn run_test<'a>(record: JournalEntry<'a>) { +pub fn run_test(record: JournalEntry<'_>) { tracing::info!("record: {:?}", record); // Determine the record type @@ -401,7 +401,7 @@ pub fn test_record_addr_clear() { pub fn test_record_port_bridge() { run_test(JournalEntry::PortBridgeV1 { network: "mynetwork".into(), - token: format!("blh blah").into(), + token: "blh blah".to_string().into(), security: JournalStreamSecurityV1::ClassicEncryption.into(), }); } @@ -512,8 +512,8 @@ pub fn test_record_socket_accepted() { pub fn test_record_socket_join_ipv4_multicast() { run_test(JournalEntry::SocketJoinIpv4MulticastV1 { fd: 12, - multiaddr: Ipv4Addr::new(123, 123, 123, 123).into(), - iface: Ipv4Addr::new(128, 0, 0, 1).into(), + multiaddr: Ipv4Addr::new(123, 123, 123, 123), + iface: Ipv4Addr::new(128, 0, 0, 1), }); } @@ -522,7 +522,7 @@ pub fn test_record_socket_join_ipv4_multicast() { pub fn test_record_socket_join_ipv6_multicast() { run_test(JournalEntry::SocketJoinIpv6MulticastV1 { fd: 12, - multi_addr: Ipv6Addr::new(123, 123, 123, 123, 1234, 12663, 31, 1324).into(), + multi_addr: Ipv6Addr::new(123, 123, 123, 123, 1234, 12663, 31, 1324), iface: 23541, }); } @@ -532,8 +532,8 @@ pub fn test_record_socket_join_ipv6_multicast() { pub fn test_record_socket_leave_ipv4_multicast() { run_test(JournalEntry::SocketLeaveIpv4MulticastV1 { fd: 12, - multi_addr: Ipv4Addr::new(123, 123, 123, 123).into(), - iface: Ipv4Addr::new(128, 0, 0, 1).into(), + multi_addr: Ipv4Addr::new(123, 123, 123, 123), + iface: Ipv4Addr::new(128, 0, 0, 1), }); } @@ -542,7 +542,7 @@ pub fn test_record_socket_leave_ipv4_multicast() { pub fn test_record_socket_leave_ipv6_multicast() { run_test(JournalEntry::SocketLeaveIpv6MulticastV1 { fd: 12, - multi_addr: Ipv6Addr::new(123, 123, 123, 123, 1234, 12663, 31, 1324).into(), + multi_addr: Ipv6Addr::new(123, 123, 123, 123, 1234, 12663, 31, 1324), iface: 23541, }); }