diff options
Diffstat (limited to 'xtask/tests/tidy-tests/docs.rs')
-rw-r--r-- | xtask/tests/tidy-tests/docs.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xtask/tests/tidy-tests/docs.rs b/xtask/tests/tidy-tests/docs.rs index 6a69e7d6a..7ae73b934 100644 --- a/xtask/tests/tidy-tests/docs.rs +++ b/xtask/tests/tidy-tests/docs.rs | |||
@@ -1,5 +1,6 @@ | |||
1 | use std::{collections::HashMap, fs, io::prelude::*, io::BufReader, path::Path}; | 1 | use std::{collections::HashMap, fs, io::prelude::*, io::BufReader, path::Path}; |
2 | 2 | ||
3 | use anyhow::Context; | ||
3 | use walkdir::{DirEntry, WalkDir}; | 4 | use walkdir::{DirEntry, WalkDir}; |
4 | use xtask::project_root; | 5 | use xtask::project_root; |
5 | 6 | ||
@@ -50,7 +51,10 @@ fn no_docs_comments() { | |||
50 | } | 51 | } |
51 | let mut reader = BufReader::new(fs::File::open(f.path()).unwrap()); | 52 | let mut reader = BufReader::new(fs::File::open(f.path()).unwrap()); |
52 | let mut line = String::new(); | 53 | let mut line = String::new(); |
53 | reader.read_line(&mut line).unwrap(); | 54 | reader |
55 | .read_line(&mut line) | ||
56 | .with_context(|| format!("Failed to read {}", f.path().display())) | ||
57 | .unwrap(); | ||
54 | 58 | ||
55 | if line.starts_with("//!") { | 59 | if line.starts_with("//!") { |
56 | if line.contains("FIXME") { | 60 | if line.contains("FIXME") { |