From 2df151c584b21ac39da796a4ba3915d9db41ece8 Mon Sep 17 00:00:00 2001 From: Christoph Herzog Date: Wed, 12 Jun 2024 18:49:56 +0200 Subject: [PATCH] chore: Formatting... --- lib/journal/src/concrete/tests.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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, }); }