summaryrefslogtreecommitdiff
path: root/src/status.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2023-06-15 20:03:31 +0100
committerAkshay <[email protected]>2023-06-15 20:03:31 +0100
commit7b5598d0de12573205415136fbb9aa467e30fa8a (patch)
treed18237265744fbbb9d3a1bf2ae888d2a8d267eb2 /src/status.rs
parent757090d32980564896d79301152490dc9b24bbb3 (diff)
status only for non-empty pullsHEADmaster
Diffstat (limited to 'src/status.rs')
-rw-r--r--src/status.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/status.rs b/src/status.rs
index 205e2a9..4479a69 100644
--- a/src/status.rs
+++ b/src/status.rs
@@ -27,6 +27,10 @@ impl PullStatus {
27 27
28impl fmt::Display for PullStatus { 28impl fmt::Display for PullStatus {
29 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { 29 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
30 if self.is_empty() {
31 return Ok(());
32 }
33
30 write!( 34 write!(
31 f, 35 f,
32 "{}", 36 "{}",