From 1ec451da896f930829d8908da81e416d891f9aa5 Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 9 Mar 2023 07:58:44 +0800 Subject: refactor: replace Arc> with Arc> (#46) --- src/config.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index 1542f9e..fe93da6 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,5 +1,4 @@ use std::{ - cell::RefCell, env, fs::{create_dir_all, read_to_string, File, OpenOptions}, io::Write, @@ -8,6 +7,8 @@ use std::{ sync::Arc, }; +use parking_lot::Mutex; + use anyhow::{anyhow, Context, Result}; use inquire::{Confirm, Text}; use serde::{Deserialize, Serialize}; @@ -56,7 +57,7 @@ pub struct Config { pub role: Option, } -pub type SharedConfig = Arc>; +pub type SharedConfig = Arc>; impl Config { pub fn init(is_interactive: bool) -> Result { -- cgit v1.2.3