Skip to content

Commit

Permalink
v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilgardis committed Jan 18, 2022
1 parent 804c77e commit c6e1d6d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "twitch-discord-moderation"
version = "0.2.1"
version = "0.3.0"
authors = ["Emil Gardström <emil.gardstrom@gmail.com>"]
edition = "2018"
license = "MIT OR APACHE-2.0"
Expand Down
12 changes: 10 additions & 2 deletions src/util.rs
Expand Up @@ -24,9 +24,17 @@ pub mod built_info {
pub static LONG_VERSION: Lazy<String> = Lazy::new(|| {
let version = if let Some(hash) = built_info::GIT_COMMIT_HASH {
if let Some(true) = built_info::GIT_DIRTY {
format!("{} ({}*)", built_info::PKG_VERSION, &hash.get(..8).unwrap_or(hash))
format!(
"{} ({}*)",
built_info::PKG_VERSION,
&hash.get(..8).unwrap_or(hash)
)
} else {
format!("{} ({})", built_info::PKG_VERSION, &hash.get(..8).unwrap_or(hash))
format!(
"{} ({})",
built_info::PKG_VERSION,
&hash.get(..8).unwrap_or(hash)
)
}
} else {
built_info::PKG_VERSION.to_string()
Expand Down

0 comments on commit c6e1d6d

Please sign in to comment.