From 1c2eb2de341947367be6b2e83b71db6e31e12fc6 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sun, 28 Jul 2019 11:15:54 +0800 Subject: [PATCH] use package version --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index fb34b1f..4ac3812 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,7 +13,7 @@ use std::{ use argparse::{ArgumentParser, StoreTrue, Store}; use rust_util::*; -const VERSION: &'static str = env!("CARGO_PKG_VERSION"); +const VERSION: &str = env!("CARGO_PKG_VERSION"); fn print_version() { print!(r#"prettyjson {}