Make `guide_path` immutable in `test_doc`

This commit is contained in:
Martin Larralde 2018-04-25 14:45:54 +02:00
parent 4dccd556b7
commit 87e3f5d600
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ fn test_file<P: AsRef<Path>>(path: P) {
#[test]
fn test_guide() {
let mut guide_path = PathBuf::from("guide").join("src");
let guide_path = PathBuf::from("guide").join("src");
for entry in guide_path.read_dir().unwrap() {
test_file(entry.unwrap().path())
}