From b6591c25a47ec14b67e93afce3b045ea9f0976bf Mon Sep 17 00:00:00 2001 From: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com> Date: Tue, 15 Aug 2023 12:57:22 +0200 Subject: [PATCH] Update lib.rs --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 51e934c..f194690 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -133,7 +133,7 @@ impl Default for CookieStoreMutex { impl CookieStoreMutex { /// Create a new [`CookieStoreMutex`] from an existing [`cookie_store::CookieStore`]. pub const fn new(cookie_store: CookieStore) -> CookieStoreMutex { - CookieStoreMutex(Mutex::const_new(cookie_store)) + CookieStoreMutex(Mutex::new(cookie_store)) } /// Lock and get a handle to the contained [`cookie_store::CookieStore`].