Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Exchange From for TryFrom for PathBuf and Home
Fintan Halpenny committed 3 years ago
commit a3f8a0b524013b7c1eadd344ebe842985e79e79d
parent 3cf1accdddb2a183b447d81dcd4c4e98c3694dad
1 file changed +3 -1
modified radicle-httpd/src/api/test.rs
@@ -1,3 +1,4 @@
+
use std::convert::TryInto as _;
use std::path::Path;
use std::str::FromStr;
use std::sync::Arc;
@@ -81,7 +82,8 @@ pub fn seed(dir: &Path) -> Context {
    .unwrap();

    // eq. rad auth
-
    let profile = radicle::Profile::init(rad_home.into(), PASSWORD.to_owned()).unwrap();
+
    let profile =
+
        radicle::Profile::init(rad_home.try_into().unwrap(), PASSWORD.to_owned()).unwrap();

    // rad init
    rad_init::init(