From 506222a9b1cf2aa5ff6f798fc84dabbc74ceb845 Mon Sep 17 00:00:00 2001 From: Alexander Andreev Date: Mon, 30 Sep 2019 12:09:56 +0300 Subject: Drop debug strings. --- crates/ra_tools/tests/docs.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'crates/ra_tools') diff --git a/crates/ra_tools/tests/docs.rs b/crates/ra_tools/tests/docs.rs index 1629247da..b4403c471 100644 --- a/crates/ra_tools/tests/docs.rs +++ b/crates/ra_tools/tests/docs.rs @@ -35,27 +35,23 @@ fn no_docs_comments() { let crates = project_root().join("crates"); let iter = WalkDir::new(crates); for f in iter.into_iter().filter_entry(|e| !is_hidden(e)) { - let f = f.unwrap(); //dbg!(f.unwrap()); + let f = f.unwrap(); if f.file_type().is_dir() { continue; } if f.path().extension().map(|it| it != "rs").unwrap_or(false) { - //dbg!(f.path()); continue; } if is_exclude_dir(f.path()) { - //dbg!(f.path()); continue; } if is_exclude_file(&f) { - //dbg!(f.path()); continue; } let mut reader = BufReader::new(fs::File::open(f.path()).unwrap()); let mut line = String::new(); reader.read_line(&mut line).unwrap(); if !line.starts_with("//!") { - //dbg!(line); panic!( "\nMissing docs strings\n\ module: {}\n\ -- cgit v1.2.3