Crates.io | clippit |
lib.rs | clippit |
version | 0.3.0 |
source | src |
created_at | 2021-06-23 20:09:28.542738 |
updated_at | 2023-08-12 02:54:09.619519 |
description | clippit makes cargo clippy sound like Office 2003's Clippit assistant (aka Clippy). |
homepage | |
repository | https://github.com/MakotoE/clippy-output |
max_upload_size | |
id | 414113 |
size | 52,297 |
clippit
makes cargo clippy
sound like Office 2003's Clippit assistant (aka "Clippy").
$ cargo clippit
/‾‾\
| |
@ @
|| |/
|| ||
|\_/|
\___/
/\
/‾‾‾‾ ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾\
| I'm checking problematic-code v0.1.0 (C:\...\clippy-output\problematic-code)... |
| Hmmm... unnecessary trailing semicolon. |
| --> src\main.rs:5:19 |
| | |
| 5 | let pi = 3.14;; |
| | ^ You should remove this semicolon |
| | |
| Note: `#[warn(redundant_semicolons)]` on by default. |
| Hmmm... unused variable: `pi`. |
| --> src\main.rs:5:9 |
| | |
| 5 | let pi = 3.14;; |
| | ^^ If this is intentional, prefix it with an underscore: `_pi` |
| | |
| Note: `#[warn(unused_variables)]` on by default. |
| Hmmm... approximate value of `f{32, 64}::consts::PI` found. |
| --> src\main.rs:5:14 |
| | |
| 5 | let pi = 3.14;; |
| | ^^^^ |
| | |
| Hint: consider using the constant directly. |
| Would you like some help with this? Visit |
| https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant. |
| Note: `#[deny(clippy::approx_constant)]` on by default. |
| Hmmm... `problematic-code` (bin "problematic-code") generated 2 warnings. |
| Let's fix `problematic-code` (bin "problematic-code")! |
\_______________________________________________________________________________________________________________/
Install with cargo install clippit
, then in a Rust directory, run
cargo clippit
Only tested with rustc 1.71.1
and clippy 0.1.71
.
Special thanks to https://github.com/gbigwood/Clippo for the ascii art.