You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-08-09 04:22:45 +03:00
Upgrade Rust to 1.72.0
Fixes new clippy errors and upgrade other tools
This commit is contained in:
@@ -108,6 +108,13 @@ pub struct CookieJar {
|
||||
}
|
||||
|
||||
impl CookieJar {
|
||||
/// Save the given payload in a cookie
|
||||
///
|
||||
/// If `permanent` is true, the cookie will be valid for 10 years
|
||||
///
|
||||
/// # Panics
|
||||
///
|
||||
/// Panics if the payload cannot be serialized
|
||||
#[must_use]
|
||||
pub fn save<T: Serialize>(mut self, key: &str, payload: &T, permanent: bool) -> Self {
|
||||
let serialized =
|
||||
|
Reference in New Issue
Block a user