From fb830c53db356b22a2635ed50d0698fafe310321 Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Mon, 15 Oct 2018 20:47:19 +0200 Subject: [PATCH] Some more documentation for clippy_dev --- clippy_dev/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clippy_dev/src/lib.rs b/clippy_dev/src/lib.rs index d312eadf8..1bd9bffff 100644 --- a/clippy_dev/src/lib.rs +++ b/clippy_dev/src/lib.rs @@ -36,6 +36,7 @@ lazy_static! { pub static ref DOCS_LINK: String = "https://rust-lang-nursery.github.io/rust-clippy/master/index.html".to_string(); } +/// Lint data parsed from the Clippy source code. #[derive(Clone, PartialEq, Debug)] pub struct Lint { pub name: String, @@ -67,6 +68,7 @@ impl Lint { } } +/// Gathers all files in `src/clippy_lints` and gathers all lints inside pub fn gather_all() -> impl Iterator { lint_files().flat_map(|f| gather_from_file(&f)) }