From 93e6a9a08aec3cbb8b847a815ad905aa0d0bffca Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 26 Mar 2023 00:10:35 -0400 Subject: fmt --- src/vcs/mod.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/vcs/mod.rs') diff --git a/src/vcs/mod.rs b/src/vcs/mod.rs index e672ec6..f033d2c 100644 --- a/src/vcs/mod.rs +++ b/src/vcs/mod.rs @@ -27,9 +27,12 @@ pub trait VcsInfo { fn is_dirty(&self) -> bool { let diff = self.remote_branch_diff(); - self.has_modified_files() || self.has_staged_files() - || self.has_new_files() || !diff.is_some() - || diff.map(|(local, remote)| local > 0 || remote > 0) + self.has_modified_files() + || self.has_staged_files() + || self.has_new_files() + || !diff.is_some() + || diff + .map(|(local, remote)| local > 0 || remote > 0) .unwrap_or(false) } @@ -41,8 +44,7 @@ pub trait VcsInfo { pub fn detect() -> Option> { if let Some(git) = git::detect() { Some(git) - } - else { + } else { None } } -- cgit v1.2.3-54-g00ecf