Skip to content

Commit

Permalink
chore: Formatting...
Browse files Browse the repository at this point in the history
  • Loading branch information
theduke committed Jun 12, 2024
1 parent 2313b10 commit d3ea1c4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/journal/src/concrete/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(),
});
}
Expand Down Expand Up @@ -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),
});
}

Expand All @@ -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,
});
}
Expand All @@ -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),
});
}

Expand All @@ -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,
});
}
Expand Down

0 comments on commit d3ea1c4

Please sign in to comment.