mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 05:50:31 +08:00
radicle: remove TryFrom
This commit is contained in:
committed by
Lorenz Leutgeb
parent
57da779949
commit
9dbbb01dc6
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user