We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60aaa4f commit 493fa04Copy full SHA for 493fa04
src/session.rs
@@ -49,7 +49,7 @@ use time::OffsetDateTime as DateTime;
49
/// assert!(session.data_changed());
50
/// # Ok(()) }) }
51
/// ```
52
-#[derive(Debug, Serialize, Deserialize)]
+#[derive(Clone, Debug, Serialize, Deserialize)]
53
pub struct Session {
54
id: String,
55
expiry: Option<DateTime>,
@@ -63,19 +63,6 @@ pub struct Session {
63
destroy: bool,
64
}
65
66
-impl Clone for Session {
67
- fn clone(&self) -> Self {
68
- Self {
69
- cookie_value: None,
70
- id: self.id.clone(),
71
- data: self.data.clone(),
72
- expiry: self.expiry,
73
- destroy: self.destroy,
74
- data_changed: self.data_changed,
75
- }
76
77
-}
78
-
79
impl Default for Session {
80
fn default() -> Self {
81
Self::new()
0 commit comments