diff --git a/src/pixiv_web.rs b/src/pixiv_web.rs index 9a64e26..dd78789 100644 --- a/src/pixiv_web.rs +++ b/src/pixiv_web.rs @@ -15,7 +15,7 @@ use std::sync::RwLock; pub struct PixivWebClient { client: WebClient, /// true if in is initialized - inited: Arc, + inited: AtomicBool, /// pixiv global data data: RwLock>, /// Get basic params @@ -26,7 +26,7 @@ impl PixivWebClient { pub fn new() -> Self { Self { client: WebClient::default(), - inited: Arc::new(AtomicBool::new(false)), + inited: AtomicBool::new(false), data: RwLock::new(None), params: RwLock::new(None), }