From e78b5f7c58fa3b6dff71042da2bbf6003c78184d Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 9 Mar 2023 08:11:38 +0800 Subject: refactor: imports order and group --- src/config.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/config.rs') 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"; -- cgit v1.2.3