(path: &Path)
| 28 | } |
| 29 | |
| 30 | fn cat_one(path: &Path) -> Result<()> { |
| 31 | let buffer = read_to_string(path)?; |
| 32 | let items = |
| 33 | parse_functions(&buffer).with_context(|| format!("failed to parse {}", path.display()))?; |
| 34 | |
| 35 | for (idx, func) in items.into_iter().enumerate() { |
| 36 | if idx != 0 { |
| 37 | println!(); |
| 38 | } |
| 39 | print!("{func}"); |
| 40 | } |
| 41 | |
| 42 | Ok(()) |
| 43 | } |
no test coverage detected