(path: P, state: &mut BuildState)
| 135 | } |
| 136 | |
| 137 | fn check_path<P: AsRef<Path>>(path: P, state: &mut BuildState) -> bool { |
| 138 | if !path.as_ref().exists() { |
| 139 | if *DEBUG.get() { |
| 140 | println!("Path `{:#?}` does not exist", path.as_ref()); |
| 141 | } |
| 142 | state.unprocessed_files.push(path.as_ref().to_path_buf()); |
| 143 | return false; |
| 144 | } |
| 145 | |
| 146 | true |
| 147 | } |
| 148 | |
| 149 | fn check_extension<P: AsRef<Path>>(ext: &OsStr, path: P) -> bool { |
| 150 | if !ext.eq_ignore_ascii_case("rs") { |
no outgoing calls
no test coverage detected