From a0752ae35f65c5b5c88826270236ab3e1a13352f Mon Sep 17 00:00:00 2001 From: Jeevitha Kannan K S Date: Sat, 16 Nov 2024 01:28:45 +0530 Subject: [PATCH] Remove accidentally commited config file --- config.toml | 1 - core/src/config.rs | 2 +- tui/src/state.rs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 config.toml diff --git a/config.toml b/config.toml deleted file mode 100644 index 67b67a79..00000000 --- a/config.toml +++ /dev/null @@ -1 +0,0 @@ -skip_confirmation = true diff --git a/core/src/config.rs b/core/src/config.rs index a540d5c8..1c2b1de0 100644 --- a/core/src/config.rs +++ b/core/src/config.rs @@ -22,7 +22,7 @@ pub struct ConfigValues { } impl Config { - pub fn new(path: &Path, tabs: &TabList) -> ConfigValues { + pub fn read_config(path: &Path, tabs: &TabList) -> ConfigValues { let content = match fs::read_to_string(path) { Ok(content) => content, Err(e) => { diff --git a/tui/src/state.rs b/tui/src/state.rs index 993dfa13..cec9cc3c 100644 --- a/tui/src/state.rs +++ b/tui/src/state.rs @@ -131,7 +131,7 @@ impl AppState { state.update_items(); if let Some(config_path) = args.config { - let config = Config::new(&config_path, &state.tabs); + let config = Config::read_config(&config_path, &state.tabs); state.apply_config(config); }