Skip to content

Commit 528e464

Browse files
committed
lintcheck: fix clippy warnings
1 parent b068b74 commit 528e464

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

lintcheck/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
name = "lintcheck"
33
version = "0.0.1"
44
authors = ["The Rust Clippy Developers"]
5+
description = "tool to monitor impact of changes in Clippys lints on a part of the ecosystem"
6+
readme = "README.md"
7+
license = "MIT OR Apache-2.0"
8+
repository = "https://github.com/rust-lang/rust-clippy"
9+
categories = ["development-tools"]
510
edition = "2018"
11+
publish = false
612

713
[dependencies]
814
clap = "2.33"

lintcheck/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ fn parse_json_message(json_message: &str, krate: &Crate) -> ClippyWarning {
499499

500500
// /home/matthias/.cargo/registry/src/i.8713187.xyz-1ecc6299db9ec823/syn-1.0.63/src/custom_keyword.rs
501501
let path = PathBuf::from(file);
502-
let mut piter = path.into_iter();
502+
let mut piter = path.iter();
503503
// consume all elements until we find ".cargo", so that "/home/matthias" is skipped
504504
let _: Option<&OsStr> = piter.find(|x| x == &std::ffi::OsString::from(".cargo"));
505505
// collect the remaining segments
@@ -594,7 +594,7 @@ fn is_in_clippy_root() -> bool {
594594
/// This function panics if the clippy binaries don't exist
595595
/// or if lintcheck is executed from the wrong directory (aka none-repo-root)
596596
pub fn main() {
597-
// assert that we launch lintcheck from the repo root (via cargo dev-lintcheck)
597+
// assert that we launch lintcheck from the repo root (via cargo lintcheck)
598598
if !is_in_clippy_root() {
599599
eprintln!("lintcheck needs to be run from clippys repo root!\nUse `cargo lintcheck` alternatively.");
600600
std::process::exit(3);

0 commit comments

Comments
 (0)