Update lib.rs

This commit is contained in:
C0D3 M4513R 2023-08-15 12:57:22 +02:00 committed by GitHub
parent 2b8abfcc9a
commit b6591c25a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`].