about summary refs log tree commit diff
path: root/clippy_dev/src
diff options
context:
space:
mode:
authorPhilipp Hansch <dev@phansch.net>2018-10-15 20:47:19 +0200
committerPhilipp Hansch <dev@phansch.net>2018-10-15 20:47:19 +0200
commitfb830c53db356b22a2635ed50d0698fafe310321 (patch)
treea55f857f6d868bb7c1db50625ea5b97a6b31d737 /clippy_dev/src
parent7da97a94dfe42768b38f6ba7dc5804cf8e5821fb (diff)
downloadrust-fb830c53db356b22a2635ed50d0698fafe310321.tar.gz
rust-fb830c53db356b22a2635ed50d0698fafe310321.zip
Some more documentation for clippy_dev
Diffstat (limited to 'clippy_dev/src')
-rw-r--r--clippy_dev/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/clippy_dev/src/lib.rs b/clippy_dev/src/lib.rs
index d312eadf89e..1bd9bffff06 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<Item=Lint> {
     lint_files().flat_map(|f| gather_from_file(&f))
 }