summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2022-03-20 02:01:57 +0100
committerGitHub <noreply@github.com>2022-03-19 21:01:57 -0400
commit8d3bffdb6cde925f5e54a74b4eae4ff7fc62b674 (patch)
treec61732eb57118d759c5cd70dc40bb7fff4607053 /src/main.rs
parent47838d143b20b066bc88799cbb38c39403087368 (diff)
build: bump shadow to 0.10.0 & git2 to 0.14.2 (#3767)
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs
index 2d7eeeb82..0490cd268 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -13,16 +13,11 @@ use starship::context::{Properties, Target};
use starship::module::ALL_MODULES;
use starship::*;
-fn long_version() -> &'static str {
- let ver = Box::new(crate::shadow::clap_long_version());
- Box::leak(ver).as_str()
-}
-
#[derive(Parser, Debug)]
#[clap(
author=crate_authors!(),
version=shadow::PKG_VERSION,
- long_version=long_version(),
+ long_version=shadow::CLAP_LONG_VERSION,
about="The cross-shell prompt for astronauts. ☄🌌️",
subcommand_required=true,
arg_required_else_help=true,