[fuzz] rustfmt the host targets
This commit is contained in:
@@ -12,7 +12,9 @@ use libfuzzer_sys::fuzz_target;
|
||||
use core::time::Duration;
|
||||
|
||||
use domistream::Instant;
|
||||
use domistream::enet::protocol::{Command, CommandBody, ConnectParams, Datagram, NO_PEER_ID, encode_datagram, parse_datagram};
|
||||
use domistream::enet::protocol::{
|
||||
Command, CommandBody, ConnectParams, Datagram, NO_PEER_ID, encode_datagram, parse_datagram,
|
||||
};
|
||||
use domistream::enet::{EnetHostConfig, EnetHostEvent, EnetHostPeer, EnetHostState, MAX_PACKET_BYTES};
|
||||
|
||||
const PEER_ID: u16 = 3;
|
||||
@@ -46,7 +48,12 @@ fn canned_connect() -> Vec<u8> {
|
||||
packet_throttle_deceleration: 2,
|
||||
connect_id: 1,
|
||||
};
|
||||
let c = Command { acknowledge: true, channel_id: 0xFF, reliable_sequence: 1, body: CommandBody::Connect { params, data: 0 } };
|
||||
let c = Command {
|
||||
acknowledge: true,
|
||||
channel_id: 0xFF,
|
||||
reliable_sequence: 1,
|
||||
body: CommandBody::Connect { params, data: 0 },
|
||||
};
|
||||
datagram(NO_PEER_ID, vec![c])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user