diff options
| author | sigoden <sigoden@gmail.com> | 2024-06-26 18:56:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-26 18:56:26 +0800 |
| commit | 03b40036a177468b1c471eefd365d6f6bc283a7c (patch) | |
| tree | 8b276882d2ac9e419f9026f3ba1a596ef7267ead /src/config | |
| parent | 2e1dc1f7d58f037e83a184f4c9e662696d1425be (diff) | |
| download | aichat-03b40036a177468b1c471eefd365d6f6bc283a7c.tar.gz | |
refactor: improve spinner (#654)
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index 26c0bda..7ca1972 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -29,7 +29,7 @@ use std::{ fs::{create_dir_all, read_dir, read_to_string, remove_file, File, OpenOptions}, io::Write, path::{Path, PathBuf}, - process::exit, + process, sync::Arc, }; use syntect::highlighting::ThemeSet; @@ -1529,7 +1529,7 @@ fn create_config_file(config_path: &Path) -> Result<()> { .with_default(true) .prompt()?; if !ans { - exit(0); + process::exit(0); } let client = Select::new("Platform:", list_client_types()).prompt()?; |
