Replace Error::Iroh catch-alls with typed variants
modified crates/radicle-tauri/src/commands/cob/release.rs
@@ -17,9 +17,7 @@ pub async fn list_releases(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -29,9 +27,7 @@ pub async fn release_by_id(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -41,9 +37,7 @@ pub async fn releases_by_commit(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -54,9 +48,7 @@ pub async fn compute_artifact_cid(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -67,9 +59,7 @@ pub async fn create_or_open_release(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -82,8 +72,7 @@ pub async fn add_artifact(
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -96,8 +85,7 @@ pub async fn add_location(
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -110,8 +98,7 @@ pub async fn remove_location(
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -122,9 +109,7 @@ pub async fn attest_artifact(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -137,8 +122,7 @@ pub async fn redact_artifact(
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -163,8 +147,7 @@ pub async fn seed_artifact(
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -186,8 +169,7 @@ pub async fn unseed_artifact(
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -224,8 +206,7 @@ pub async fn download_artifact(
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -282,7 +263,7 @@ pub async fn pick_artifact_files(app: tauri::AppHandle) -> Result<Vec<String>, E
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -298,7 +279,7 @@ pub async fn pick_artifact_directory(app: tauri::AppHandle) -> Result<Option<Str
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-tauri/src/commands/repo.rs
@@ -127,9 +127,7 @@ pub async fn list_tags(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-types/src/error.rs
@@ -171,6 +171,54 @@ pub enum Error {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-types/src/fetch.rs
@@ -36,8 +36,8 @@ pub async fn fetch_artifact<F>(
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -45,9 +45,9 @@ where
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -77,15 +77,15 @@ where
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-types/src/seeder.rs
@@ -56,7 +56,7 @@ fn load_or_generate_key(path: &PathBuf) -> Result<iroh::SecretKey, Error> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -106,17 +106,17 @@ pub async fn import_blob(store: &Store, path: &Path, expected: &Cid) -> Result<H
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -140,9 +140,10 @@ pub async fn import_collection(store: &Store, dir: &Path, expected: &Cid) -> Res
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -150,7 +151,7 @@ pub async fn import_collection(store: &Store, dir: &Path, expected: &Cid) -> Res
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -185,9 +186,8 @@ pub async fn is_seeded(store: &Store, cid: &Cid) -> Result<bool, Error> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -197,12 +197,12 @@ pub async fn seed(store: &Store, cid: &str, source: &Path) -> Result<(), Error>
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-types/src/traits/release.rs
@@ -19,11 +19,11 @@ pub trait Releases: Profile {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -44,10 +44,9 @@ pub trait Releases: Profile {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -66,14 +65,11 @@ pub trait Releases: Profile {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -83,9 +79,9 @@ pub trait Releases: Profile {
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -103,19 +99,20 @@ pub trait Releases: Profile {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-types/src/traits/release_mut.rs
@@ -29,23 +29,19 @@ pub trait ReleasesMut: Releases {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -63,16 +59,12 @@ pub trait ReleasesMut: Releases {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -87,17 +79,13 @@ pub trait ReleasesMut: Releases {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -112,17 +100,13 @@ pub trait ReleasesMut: Releases {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -136,16 +120,12 @@ pub trait ReleasesMut: Releases {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -160,25 +140,12 @@ pub trait ReleasesMut: Releases {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |