aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2023-03-26 00:14:38 -0400
committerJesse Luehrs <doy@tozt.net>2023-03-26 00:14:38 -0400
commit6f19f96053db7475e2376c9dd3179c4dd2264df8 (patch)
treea6c3d3f02f7026b7e98a3e007ff6a37e2a77fd97 /src/vcs
parent93e6a9a08aec3cbb8b847a815ad905aa0d0bffca (diff)
downloadfancy-prompt-6f19f96053db7475e2376c9dd3179c4dd2264df8.tar.gz
fancy-prompt-6f19f96053db7475e2376c9dd3179c4dd2264df8.zip
clippy
Diffstat (limited to 'src/vcs')
-rw-r--r--src/vcs/git.rs2
-rw-r--r--src/vcs/mod.rs2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/vcs/git.rs b/src/vcs/git.rs
index 1a5b856..b2fd5b2 100644
--- a/src/vcs/git.rs
+++ b/src/vcs/git.rs
@@ -1,5 +1,3 @@
-use git2;
-
use std::fmt::Write;
#[derive(Debug)]
diff --git a/src/vcs/mod.rs b/src/vcs/mod.rs
index f033d2c..96340cb 100644
--- a/src/vcs/mod.rs
+++ b/src/vcs/mod.rs
@@ -30,7 +30,7 @@ pub trait VcsInfo {
self.has_modified_files()
|| self.has_staged_files()
|| self.has_new_files()
- || !diff.is_some()
+ || diff.is_none()
|| diff
.map(|(local, remote)| local > 0 || remote > 0)
.unwrap_or(false)