Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
radicle: remove `TryFrom`
Fintan Halpenny committed 1 month ago
commit 9dbbb01dc6b0f335b45dac58a24d137d6167ed35
parent 57da779
2 files changed +2 -8
modified crates/radicle/CHANGELOG.md
@@ -22,6 +22,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Opening database connections requires specification of a configuration.
  `radicle::Profile` conveniently provides methods that supply the
  configuration from `radicle::Profile::config`.
+
- The `TryFrom<PathBuf>` implementation for `Home` is removed in favor of using
+
  the `Home::new` and `Home::load` methods.

### Removed

modified crates/radicle/src/profile.rs
@@ -556,14 +556,6 @@ pub struct Home {
    path: PathBuf,
}

-
impl TryFrom<PathBuf> for Home {
-
    type Error = io::Error;
-

-
    fn try_from(home: PathBuf) -> Result<Self, Self::Error> {
-
        Self::new(home)
-
    }
-
}
-

impl Home {
    /// Creates the Radicle Home directories.
    ///