For API consistency, we create our own Error variants
| 2 | |
| 3 | // For API consistency, we create our own Error variants |
| 4 | pub trait ErrorExt { |
| 5 | #[allow(dead_code)] |
| 6 | fn from_str(message: &str) -> Self; |
| 7 | fn merge_conflict(branch: String, upstream: String, message: Option<String>) -> Self; |
| 8 | fn git_command_failed(command: String, status: i32, stdout: String, stderr: String) -> Self; |
| 9 | } |
| 10 | |
| 11 | impl ErrorExt for Error { |
| 12 | fn from_str(message: &str) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected