MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / removed

Method removed

atomic-cli/src/commands/diff/types.rs:452–459  ·  view source on GitHub ↗

Create a removed line.

(content: impl Into<String>, old_num: usize)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected