diff --git a/Cargo.lock b/Cargo.lock index 1e6564cb..50fe4ada 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1570,9 +1570,9 @@ checksum = "ae1a47186c03a32177042e55dbc5fd5aee900b8e0069a8d70fba96a9375cd012" [[package]] name = "shadow-rs" -version = "0.8.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8935e920eb80ff8f5a5bced990325d12f6cc1015154a3852c6a23cf5bd71c447" +checksum = "38aacac9d96bfdac3f00d2149fc2235f99b839f54f0bb18bea39c7749c97f709" dependencies = [ "chrono", "git2", diff --git a/Cargo.toml b/Cargo.toml index d9a20de5..4af3f2b9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,7 +55,7 @@ semver = "1.0.6" serde = { version = "1.0.136", features = ["derive"] } serde_json = "1.0.79" sha-1 = "0.10.0" -shadow-rs = "0.8.1" +shadow-rs = "0.9.0" # battery is optional (on by default) because the crate doesn't currently build for Termux # see: https://github.com/svartalf/rust-battery/issues/33 starship-battery = { version = "0.7.9", optional = true } @@ -83,7 +83,7 @@ winapi = { version = "0.3.9", features = ["winuser", "securitybaseapi", "process nix = "0.23.1" [build-dependencies] -shadow-rs = "0.8.1" +shadow-rs = "0.9.0" [target.'cfg(windows)'.build-dependencies] winres = "0.1.12" diff --git a/src/main.rs b/src/main.rs index 8362ec6c..1fee50bf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,7 +13,7 @@ use starship::module::ALL_MODULES; use starship::*; fn long_version() -> &'static str { - let ver = Box::new(crate::shadow::clap_version()); + let ver = Box::new(crate::shadow::clap_long_version()); Box::leak(ver).as_str() }