derive default for content
@@ -24,7 +24,7 @@ impl Default for Meta {
}
}
-#[derive(Debug, Serialize, Deserialize)]
+#[derive(Debug, Default, Serialize, Deserialize)]
struct Content {
#[serde(rename = "__meta__")]
meta: Meta,
@@ -34,16 +34,6 @@ struct Content {
headers: HashMap<String, String>,
}
-impl Default for Content {
- fn default() -> Self {
- Content {
- meta: Meta::default(),
- cookies: HashMap::new(),
- headers: HashMap::new(),
- }
- }
-}
-
pub struct Session {
pub path: PathBuf,
pub read_only: bool,
