From 9af265efbeb3ec2506f038444a50c8e6c2bfd452 Mon Sep 17 00:00:00 2001 From: Skia Date: Tue, 12 Apr 2022 23:33:17 +0200 Subject: [PATCH] Use clap's 'crate_version' macro to avoid further mess --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0b979e9..6dfebd3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ extern crate serde_json; use serde::{Deserialize, Serialize}; -use clap::{App, Arg, SubCommand}; +use clap::{App, Arg, SubCommand, crate_version, crate_authors}; use std::env; use std::io::Cursor; use std::io::{Read, Write}; @@ -265,8 +265,8 @@ fn init_workspaces(stream: &UnixStream, workspace_name: &String) { fn main() { let matches = App::new("swaysome") - .version("1.1.2") - .author("Skia ") + .version(crate_version!()) + .author(crate_authors!()) .about("Better multimonitor handling for sway") .subcommand( SubCommand::with_name("init")