(operation: &'static str, bytes: Vec<u8>)
| 585 | } |
| 586 | |
| 587 | fn output_text(operation: &'static str, bytes: Vec<u8>) -> Result<String, WipCaptureError> { |
| 588 | String::from_utf8(bytes) |
| 589 | .map(|value| value.trim().to_string()) |
| 590 | .map_err(|source| WipCaptureError::InvalidOutput { operation, source }) |
| 591 | } |
| 592 | |
| 593 | fn git_bytes( |
| 594 | root: &Path, |
no outgoing calls
no test coverage detected