diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d35929..c6009a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * `backup` CLI command * Incremental backups - * Chain length descibres how many incremental backups to create from the + * Chain length describes how many incremental backups to create from the same full backup * "backups to keep" has been replaced by "chains to keep" * Server type & version is now stored as metadata in the metadata file diff --git a/src/backup/manager.rs b/src/backup/manager.rs index ce3dbe1..1dfec16 100644 --- a/src/backup/manager.rs +++ b/src/backup/manager.rs @@ -1,5 +1,5 @@ use super::Backup; -use serde::de::DeserializeOwned; +use serde::Deserialize; use serde::Serialize; use std::fs::File; use std::io; @@ -7,7 +7,7 @@ use std::path::PathBuf; pub struct Manager where - T: Clone + Serialize + DeserializeOwned, + T: Clone + Serialize + for<'de> Deserialize<'de>, { backup_dir: PathBuf, config_dir: PathBuf, @@ -20,7 +20,7 @@ where impl Manager where - T: Clone + Serialize + DeserializeOwned, + T: Clone + Serialize + for<'de> Deserialize<'de>, { const METADATA_FILE: &str = "alex.json";