diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-09-18 11:19:52 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-09-18 11:29:53 -0700 |
| commit | efa6675f1d632f5d524f4a7a18838c6ee1c0c447 (patch) | |
| tree | 766244783f25f9933d1b2bcc8e8d993367033bdd /src/fuzzer | |
| parent | 3b013cd800ce675a445220105911bbefd2427e47 (diff) | |
make filetype() include the "." (fixes #3412)
Diffstat (limited to 'src/fuzzer')
| -rw-r--r-- | src/fuzzer/fuzzer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuzzer/fuzzer.rs b/src/fuzzer/fuzzer.rs index c4dd4bcf4bc..9ee36769ff1 100644 --- a/src/fuzzer/fuzzer.rs +++ b/src/fuzzer/fuzzer.rs @@ -26,7 +26,7 @@ fn contains(haystack: ~str, needle: ~str) -> bool { } fn find_rust_files(files: &mut ~[Path], path: &Path) { - if path.filetype() == Some(~"rs") && !contains(path.to_str(), ~"utf8") { + if path.filetype() == Some(~".rs") && !contains(path.to_str(), ~"utf8") { // ignoring "utf8" tests because something is broken vec::push(*files, *path); } else if os::path_is_dir(path) |
