summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2018-07-02 16:17:12 +0200
committerLinus Färnstrand <linus@mullvad.net>2018-07-03 11:33:31 +0200
commitd5b4690a4562e81d0bd7fd32b284cafd3904faf5 (patch)
treeca73c30fad5aca042bfbc9bfac7a8752448a71d2
parent4e973db1b6a581a3e51926715f5d63a5606348fe (diff)
downloadmullvadvpn-d5b4690a4562e81d0bd7fd32b284cafd3904faf5.tar.xz
mullvadvpn-d5b4690a4562e81d0bd7fd32b284cafd3904faf5.zip
Rename daemon_version function
-rw-r--r--mullvad-problem-report/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/mullvad-problem-report/src/main.rs b/mullvad-problem-report/src/main.rs
index c4db962ab5..bc03d31673 100644
--- a/mullvad-problem-report/src/main.rs
+++ b/mullvad-problem-report/src/main.rs
@@ -83,7 +83,7 @@ quick_main!(run);
fn run() -> Result<()> {
let app = clap::App::new("problem-report")
- .version(daemon_version())
+ .version(product_version())
.author(crate_authors!())
.about("Mullvad VPN problem report tool. Collects logs and sends them to Mullvad support.")
.setting(clap::AppSettings::SubcommandRequired)
@@ -444,13 +444,13 @@ fn collect_metadata() -> HashMap<String, String> {
let mut metadata = HashMap::new();
metadata.insert(
String::from("mullvad-daemon-version"),
- daemon_version().to_owned(),
+ product_version().to_owned(),
);
metadata.insert(String::from("os"), os_version());
metadata
}
-fn daemon_version() -> &'static str {
+fn product_version() -> &'static str {
concat!(
include_str!(concat!(env!("OUT_DIR"), "/product-version.txt")),
" ",