(path: P)
| 150 | } |
| 151 | |
| 152 | fn read_file<P: AsRef<Path>>(path: P) -> Result<String> { |
| 153 | let path = path.as_ref(); |
| 154 | let mut f = fs::File::open(path).chain_err(|| "Unable to read file")?; |
| 155 | let mut content = String::new(); |
| 156 | f.read_to_string(&mut content).chain_err(|| "Unable to read file")?; |
| 157 | Ok(content) |
| 158 | } |
| 159 | |
| 160 | fn compile<P: AsRef<Path>>(project_dir: P, verbose: bool) -> Result<()> { |
| 161 | let mut command = Command::new("cargo"); |
no outgoing calls
no test coverage detected