Create a removed line.
(content: impl Into<String>, old_num: usize)
| 450 | |
| 451 | /// Create a removed line. |
| 452 | pub fn removed(content: impl Into<String>, old_num: usize) -> Self { |
| 453 | Self { |
| 454 | status: LineStatus::Removed, |
| 455 | content: content.into(), |
| 456 | old_line_num: Some(old_num), |
| 457 | new_line_num: None, |
| 458 | } |
| 459 | } |
| 460 | |
| 461 | /// Check if this line represents a change (added or removed). |
| 462 | pub fn is_change(&self) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected