Use env!("CARGO_PKG_VERSION") instead of hardcoding version when possible

See https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates
This commit is contained in:
Bat
2018-10-06 18:33:10 +01:00
parent 7a64005ca9
commit 915b9bb0e5
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ use std::time::SystemTime;
use activity_pub::ap_accept_header;
use activity_pub::sign::Signer;
const USER_AGENT: &'static str = "Plume/0.2.0";
const USER_AGENT: &'static str = concat!("Plume/", env!("CARGO_PKG_VERSION"));
header! {
(Signature, "Signature") => [String]