Get the prefix character for this line.
(&self)
| 513 | |
| 514 | /// Get the prefix character for this line. |
| 515 | pub fn prefix(&self) -> char { |
| 516 | match self.status { |
| 517 | LineStatus::Unchanged => ' ', |
| 518 | LineStatus::Added => '+', |
| 519 | LineStatus::Removed => '-', |
| 520 | } |
| 521 | } |
| 522 | } |
| 523 | |
| 524 | impl fmt::Display for HunkLine { |
no outgoing calls
no test coverage detected