Skip to content

Commit 1b56638

Browse files
committed
clippy
1 parent 635ae60 commit 1b56638

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

wgpu-remote/tests/unix-send-shmem.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,14 @@ fn sender(socket: fd::OwnedFd) -> ! {
9292
//
9393
// The unix(7) man page for Linux says:
9494
//
95-
// At least one byte of real data should be sent when sending ancillary
96-
// data. On Linux, this is required to successfully send ancillary data
97-
// over a UNIX domain stream socket. When sending ancillary data over a
98-
// UNIX domain datagram socket, it is not necessary on Linux to send any
99-
// accompanying real data. However, portable applications should also in‐
100-
// clude at least one byte of real data when sending ancillary data over a
101-
// datagram socket.
95+
// > At least one byte of real data should be sent when sending
96+
// > ancillary data. On Linux, this is required to successfully send
97+
// > ancillary data over a UNIX domain stream socket. When sending
98+
// > ancillary data over a UNIX domain datagram socket, it is not
99+
// > necessary on Linux to send any accompanying real data. However,
100+
// > portable applications should also in‐ clude at least one byte
101+
// > of real data when sending ancillary data over a datagram
102+
// > socket.
102103
socket::sendmsg::<()>(
103104
socket.as_raw_fd(),
104105
&[std::io::IoSlice::new(b"X")], // one byte of "real" data

wgpu-remote/webidl/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ fn main() {
44
let source = include_str!("webgpu.idl");
55
let (remaining, parsed) =
66
weedle::Definitions::parse(source).expect("failed to parse `Definitions`");
7-
println!("parsed:{:#?}", parsed);
7+
println!("parsed: {parsed:#?}", );
88
println!();
99
println!("remaining: {remaining:?}");
1010
}

0 commit comments

Comments
 (0)