summaryrefslogtreecommitdiffstats
path: root/src/feature
diff options
context:
space:
mode:
authorBen S <ogham@bsago.me>2015-05-12 03:14:56 +0100
committerBen S <ogham@bsago.me>2015-05-12 03:14:56 +0100
commit2a3045ddfa976543e3336766bf82e60f3023561c (patch)
tree7917c1298d47f1c30cd06fad29f6b225dbf7f8d0 /src/feature
parentb0d4c9728f9e8ad47b1f9c4b5ef4ae5dca3906fc (diff)
Minor whitespace changes
Diffstat (limited to 'src/feature')
-rw-r--r--src/feature/git.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/feature/git.rs b/src/feature/git.rs
index 17ef7d8..1b58b65 100644
--- a/src/feature/git.rs
+++ b/src/feature/git.rs
@@ -52,12 +52,12 @@ impl Git {
/// The character to display if the file has been modified, but not staged.
fn working_tree_status(status: git2::Status) -> file::GitStatus {
match status {
- s if s.contains(git2::STATUS_WT_NEW) => file::GitStatus::New,
- s if s.contains(git2::STATUS_WT_MODIFIED) => file::GitStatus::Modified,
- s if s.contains(git2::STATUS_WT_DELETED) => file::GitStatus::Deleted,
- s if s.contains(git2::STATUS_WT_RENAMED) => file::GitStatus::Renamed,
- s if s.contains(git2::STATUS_WT_TYPECHANGE) => file::GitStatus::TypeChange,
- _ => file::GitStatus::NotModified,
+ s if s.contains(git2::STATUS_WT_NEW) => file::GitStatus::New,
+ s if s.contains(git2::STATUS_WT_MODIFIED) => file::GitStatus::Modified,
+ s if s.contains(git2::STATUS_WT_DELETED) => file::GitStatus::Deleted,
+ s if s.contains(git2::STATUS_WT_RENAMED) => file::GitStatus::Renamed,
+ s if s.contains(git2::STATUS_WT_TYPECHANGE) => file::GitStatus::TypeChange,
+ _ => file::GitStatus::NotModified,
}
}
@@ -65,11 +65,11 @@ fn working_tree_status(status: git2::Status) -> file::GitStatus {
/// has been staged.
fn index_status(status: git2::Status) -> file::GitStatus {
match status {
- s if s.contains(git2::STATUS_INDEX_NEW) => file::GitStatus::New,
- s if s.contains(git2::STATUS_INDEX_MODIFIED) => file::GitStatus::Modified,
- s if s.contains(git2::STATUS_INDEX_DELETED) => file::GitStatus::Deleted,
- s if s.contains(git2::STATUS_INDEX_RENAMED) => file::GitStatus::Renamed,
- s if s.contains(git2::STATUS_INDEX_TYPECHANGE) => file::GitStatus::TypeChange,
- _ => file::GitStatus::NotModified,
+ s if s.contains(git2::STATUS_INDEX_NEW) => file::GitStatus::New,
+ s if s.contains(git2::STATUS_INDEX_MODIFIED) => file::GitStatus::Modified,
+ s if s.contains(git2::STATUS_INDEX_DELETED) => file::GitStatus::Deleted,
+ s if s.contains(git2::STATUS_INDEX_RENAMED) => file::GitStatus::Renamed,
+ s if s.contains(git2::STATUS_INDEX_TYPECHANGE) => file::GitStatus::TypeChange,
+ _ => file::GitStatus::NotModified,
}
}