From 29c0a4abdfa8fc9c29a5588d2dc3bc4c65070625 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 31 Mar 2021 19:39:04 +0200 Subject: [PATCH] lohr: v0.3.3 --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/main.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 60bf2b6..4e6aaa2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -298,7 +298,7 @@ dependencies = [ [[package]] name = "lohr" -version = "0.3.2" +version = "0.3.3" dependencies = [ "anyhow", "clap", diff --git a/Cargo.toml b/Cargo.toml index ac90f78..b947936 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lohr" -version = "0.3.2" +version = "0.3.3" authors = ["Antoine Martin "] edition = "2018" license = "Apache-2.0 OR MIT" diff --git a/src/main.rs b/src/main.rs index 97dadc8..38478e1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,7 @@ use std::sync::{ use std::thread; use anyhow::Context; -use clap::{App, Arg}; +use clap::{App, Arg, crate_version}; use log::{error, info}; use rocket::{http::Status, post, routes, State}; @@ -94,7 +94,7 @@ fn parse_config(home: &Path, flags: &clap::ArgMatches) -> anyhow::Result anyhow::Result<()> { let matches = App::new("lohr") - .version("0.3.2") + .version(crate_version!()) .about("Git mirroring daemon") .arg( Arg::with_name("config")