fix docs on the default TLS crate #423
GitHub Actions / clippy
succeeded
Mar 25, 2024 in 0s
clippy
2 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 2 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.77.0 (aedd173a2 2024-03-17)
- cargo 1.77.0 (3fe68eabf 2024-02-29)
- clippy 0.1.77 (aedd173 2024-03-17)
Annotations
Check warning on line 160 in src/connection.rs
github-actions / clippy
accessing first element with `restored.channels.get(0)`
warning: accessing first element with `restored.channels.get(0)`
--> src/connection.rs:160:43
|
160 | let channel = if let Some(chan) = restored.channels.get(0) {
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `restored.channels.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `-W clippy::get-first` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::get_first)]`
Check warning on line 206 in src/buffer.rs
github-actions / clippy
written amount is not handled
warning: written amount is not handled
--> src/buffer.rs:206:13
|
206 | space.write(data)?
| ^^^^^^^^^^^^^^^^^^
|
= help: use `Write::write_all` instead, or handle partial writes
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount
= note: `-W clippy::unused-io-amount` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::unused_io_amount)]`
Loading