Create a context (unchanged) line.
(content: impl Into<String>, old_num: usize, new_num: usize)
| 430 | impl HunkLine { |
| 431 | /// Create a context (unchanged) line. |
| 432 | pub fn context(content: impl Into<String>, old_num: usize, new_num: usize) -> Self { |
| 433 | Self { |
| 434 | status: LineStatus::Unchanged, |
| 435 | content: content.into(), |
| 436 | old_line_num: Some(old_num), |
| 437 | new_line_num: Some(new_num), |
| 438 | } |
| 439 | } |
| 440 | |
| 441 | /// Create an added line. |
| 442 | pub fn added(content: impl Into<String>, new_num: usize) -> Self { |
no outgoing calls
no test coverage detected