Skip to content

Commit 8c2ce03

Browse files
reformat
1 parent 6ecfb96 commit 8c2ce03

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

xpd-common/build.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ fn main() {
2222

2323
println!("cargo::rustc-env=GIT_HASH_EXPERIENCED={}", commit_sha);
2424
println!("cargo::rustc-env=GIT_REV_COUNT_EXPERIENCED={}", rev_num)
25-
2625
}
2726

2827
fn get_sha() -> Result<String, Error> {
@@ -74,13 +73,12 @@ impl std::fmt::Display for Error {
7473
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
7574
match self {
7675
Self::TryFromString => write!(f, "Invalid UTF-8 in `git` output")?,
77-
Self::BadStatus(exit_status) => write!(
78-
f,
79-
"`git` exited with non-zero status {exit_status}"
80-
)?,
76+
Self::BadStatus(exit_status) => {
77+
write!(f, "`git` exited with non-zero status {exit_status}")?
78+
}
8179
Self::Io(error) => write!(f, "I/O error trying to run `git`: {error}")?,
8280
Self::NoOutput => write!(f, "No output from `git`")?,
83-
Self::ParseInt(error) => write!(f, "Could not convert to int: {error}")?
81+
Self::ParseInt(error) => write!(f, "Could not convert to int: {error}")?,
8482
}
8583
Ok(())
8684
}
@@ -104,7 +102,6 @@ impl From<std::io::Error> for Error {
104102
}
105103
}
106104

107-
108105
impl From<std::num::ParseIntError> for Error {
109106
fn from(value: std::num::ParseIntError) -> Self {
110107
Self::ParseInt(value)

xpd-slash/src/admin.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ use twilight_model::{
88
},
99
};
1010
use twilight_util::builder::embed::EmbedBuilder;
11-
use xpd_common::{CURRENT_GIT_SHA, DEFAULT_MESSAGE_COOLDOWN, DISCORD_EPOCH_SECS, CURRENT_GIT_REV_COUNT};
11+
use xpd_common::{
12+
CURRENT_GIT_REV_COUNT, CURRENT_GIT_SHA, DEFAULT_MESSAGE_COOLDOWN, DISCORD_EPOCH_SECS,
13+
};
1214
use xpd_slash_defs::admin::{
1315
self, AdminCommand, AdminCommandBanGuild, AdminCommandGuildStats, AdminCommandInspectCooldown,
1416
AdminCommandLeave, AdminCommandPardonGuild, AdminCommandResetGuild, AdminCommandResetUser,

0 commit comments

Comments
 (0)