From cce0baf81ae59a1f44812e556ca28f993b39ffc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Sun, 1 Sep 2024 16:07:50 +0200 Subject: [PATCH] fix pimalaya-tui package name --- Cargo.lock | 2 +- src/config/mod.rs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 88e3dc3..ea5cc4d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3191,7 +3191,7 @@ dependencies = [ [[package]] name = "pimalaya-tui" version = "0.1.0" -source = "git+https://github.com/pimalaya/tui#0b2403886edcc57491e56da86537541e9b126cbc" +source = "git+https://github.com/pimalaya/tui#fba8c1284dbaaa4433c7cb6b242e68864d8d5b44" dependencies = [ "clap", "color-eyre", diff --git a/src/config/mod.rs b/src/config/mod.rs index 76a7ef9..ad4e4a4 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -28,7 +28,11 @@ pub struct Config { pub account: Option, } -impl TomlConfig for Config {} +impl TomlConfig for Config { + fn project_name() -> &'static str { + env!("CARGO_PKG_NAME") + } +} impl Config { /// Create and save a TOML configuration using the wizard.