Gate some commonly unused traits behind a feature #1343
CI.yml
on: pull_request
code_gen
34s
clippy
3m 22s
clippy-rustfmt
27s
msrv-check
7m 5s
non-amd64-test
1m 38s
non-linux-unix-test
2m 19s
windows-stable
3m 2s
Matrix: build
Annotations
5 errors
clippy-rustfmt
Process completed with exit code 101.
|
non-amd64-test
Process completed with exit code 101.
|
non-linux-unix-test
Process completed with exit code 101.
|
windows-stable
Process completed with exit code 1.
|
clippy:
x11rb-protocol/src/packet_reader.rs#L135
[clippy] reported by reviewdog 🐶
<pre><code>error: this loop never actually loops
--> x11rb-protocol/src/packet_reader.rs:135:9
|
135 | / for mut packet in packets {
136 | | let original_packet = packet.clone();
137 | |
138 | | loop {
... |
148 | | }
149 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
= note: `#[deny(clippy::never_loop)]` on by default
help: if you need the first element of the iterator, try writing
|
135 | if let Some(mut packet) = packets.into_iter().next() {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
</code></pre>
Raw Output:
x11rb-protocol/src/packet_reader.rs:135:9:e:
<pre><code>error: this loop never actually loops
--> x11rb-protocol/src/packet_reader.rs:135:9
|
135 | / for mut packet in packets {
136 | | let original_packet = packet.clone();
137 | |
138 | | loop {
... |
148 | | }
149 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#never_loop
= note: `#[deny(clippy::never_loop)]` on by default
help: if you need the first element of the iterator, try writing
|
135 | if let Some(mut packet) = packets.into_iter().next() {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
</code></pre>
__END__
|