From f4debbc9fe4d877dd5d2fd291e5e3dba9b76c444 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Sat, 28 May 2022 22:24:47 +0100 Subject: [PATCH] Fix up clap changes --- yama/src/bin/yama.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yama/src/bin/yama.rs b/yama/src/bin/yama.rs index bff675f..5d00979 100644 --- a/yama/src/bin/yama.rs +++ b/yama/src/bin/yama.rs @@ -18,9 +18,9 @@ along with Yama. If not, see . use std::path::{Path, PathBuf}; use anyhow::{bail, Context}; -use clap::{crate_authors, crate_description, crate_version, Parser}; use log::info; +use clap::Parser; use env_logger::Env; use std::sync::Arc; use yama::commands::{fully_integrate_pointer_node, load_pile_descriptor, open_pile}; @@ -32,7 +32,7 @@ use yama::pile::{Pile, PileDescriptor, RawPile}; use yama::{commands, debug}; #[derive(Parser)] -#[clap(version = crate_version!(), author = crate_authors!(), about = crate_description!())] +#[clap(version = env!("CARGO_PKG_VERSION"), author = env!("CARGO_PKG_AUTHORS"), about = env!("CARGO_PKG_DESCRIPTION"))] struct Opts { /// Chooses a different pile to be the working pile. /// If specified, must be the name of a remote in yama.toml.