Skip to content

Commit fb830c5

Browse files
committed
Some more documentation for clippy_dev
1 parent 7da97a9 commit fb830c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clippy_dev/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ lazy_static! {
3636
pub static ref DOCS_LINK: String = "https://rust-lang-nursery.github.io/rust-clippy/master/index.html".to_string();
3737
}
3838

39+
/// Lint data parsed from the Clippy source code.
3940
#[derive(Clone, PartialEq, Debug)]
4041
pub struct Lint {
4142
pub name: String,
@@ -67,6 +68,7 @@ impl Lint {
6768
}
6869
}
6970

71+
/// Gathers all files in `src/clippy_lints` and gathers all lints inside
7072
pub fn gather_all() -> impl Iterator<Item=Lint> {
7173
lint_files().flat_map(|f| gather_from_file(&f))
7274
}

0 commit comments

Comments
 (0)