diff options
| author | sigoden <sigoden@gmail.com> | 2023-03-09 08:11:38 +0800 |
|---|---|---|
| committer | sigoden <sigoden@gmail.com> | 2023-03-09 08:15:14 +0800 |
| commit | e78b5f7c58fa3b6dff71042da2bbf6003c78184d (patch) | |
| tree | 6cd92751a565e6e5ddc1907171a67326037cea13 /src/config.rs | |
| parent | 1ec451da896f930829d8908da81e416d891f9aa5 (diff) | |
| download | aichat-e78b5f7c58fa3b6dff71042da2bbf6003c78184d.tar.gz | |
refactor: imports order and group
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/config.rs b/src/config.rs index fe93da6..dae3462 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,3 +1,9 @@ +use crate::utils::{emphasis, now}; + +use anyhow::{anyhow, Context, Result}; +use inquire::{Confirm, Text}; +use parking_lot::Mutex; +use serde::{Deserialize, Serialize}; use std::{ env, fs::{create_dir_all, read_to_string, File, OpenOptions}, @@ -7,14 +13,6 @@ use std::{ sync::Arc, }; -use parking_lot::Mutex; - -use anyhow::{anyhow, Context, Result}; -use inquire::{Confirm, Text}; -use serde::{Deserialize, Serialize}; - -use crate::utils::{emphasis, now}; - const CONFIG_FILE_NAME: &str = "config.yaml"; const ROLES_FILE_NAME: &str = "roles.yaml"; const HISTORY_FILE_NAME: &str = "history.txt"; |
