summaryrefslogtreecommitdiffstats
path: root/src/git.rs
diff options
context:
space:
mode:
authorqkzk <qu3nt1n@gmail.com>2023-10-07 22:35:57 +0200
committerqkzk <qu3nt1n@gmail.com>2023-10-07 22:35:57 +0200
commit345d46967b8c14383406233200e221098ee939f7 (patch)
treef272564bd6cbc9a27e941c0defbec41a51b7d240 /src/git.rs
parent3c58467c42e114452195ee2f2e567201a00fd23f (diff)
move external import after std import
Diffstat (limited to 'src/git.rs')
-rw-r--r--src/git.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/git.rs b/src/git.rs
index 40a03ea..5404627 100644
--- a/src/git.rs
+++ b/src/git.rs
@@ -4,11 +4,12 @@
// Copied from https://github.com/9ary/gitprompt-rs/blob/master/src/main.rs
// Couldn't use without forking and I'm lazy.
-use anyhow::{anyhow, Context, Result};
use std::fmt::Write as _;
use std::path::Path;
use std::process;
+use anyhow::{anyhow, Context, Result};
+
struct GitStatus {
branch: Option<String>,
ahead: i64,