silence warning #458
GitHub Actions / clippy
succeeded
Mar 8, 2025 in 0s
clippy
1 warning
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 1 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.85.0 (4d91de4e4 2025-02-17)
- cargo 1.85.0 (d73d2caf9 2024-12-31)
- clippy 0.1.85 (4d91de4e48 2025-02-17)
Annotations
Check warning on line 239 in src/buffer.rs
github-actions / clippy
using `map` over `inspect`
warning: using `map` over `inspect`
--> src/buffer.rs:239:28
|
239 | before(s, tmp).map(|s| {
| ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
= note: `-W clippy::manual-inspect` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::manual_inspect)]`
help: try
|
239 ~ before(s, tmp).inspect(|s| {
240 ~ s.write.rollback(end);
|
Loading