Create a context (unchanged) line.
(content: impl Into<String>, old_num: usize, new_num: usize)
| 453 | impl HunkLine { |
| 454 | /// Create a context (unchanged) line. |
| 455 | pub fn context(content: impl Into<String>, old_num: usize, new_num: usize) -> Self { |
| 456 | Self { |
| 457 | status: LineStatus::Unchanged, |
| 458 | content: content.into(), |
| 459 | old_line_num: Some(old_num), |
| 460 | new_line_num: Some(new_num), |
| 461 | } |
| 462 | } |
| 463 | |
| 464 | /// Create an added line. |
| 465 | pub fn added(content: impl Into<String>, new_num: usize) -> Self { |
no outgoing calls
no test coverage detected