Get a human-readable description of this status.
(&self)
| 709 | |
| 710 | /// Get a human-readable description of this status. |
| 711 | pub fn description(&self) -> &'static str { |
| 712 | match self { |
| 713 | FileChangeStatus::Added => "added", |
| 714 | FileChangeStatus::Deleted => "deleted", |
| 715 | FileChangeStatus::Modified => "modified", |
| 716 | FileChangeStatus::Renamed => "renamed", |
| 717 | FileChangeStatus::Copied => "copied", |
| 718 | FileChangeStatus::TypeChanged => "type changed", |
| 719 | FileChangeStatus::Untracked => "untracked", |
| 720 | } |
| 721 | } |
| 722 | } |
| 723 | |
| 724 | impl fmt::Display for FileChangeStatus { |
nothing calls this directly
no outgoing calls
no test coverage detected