fix: clippy redundant closure in repo_import

Author: Aaron Steven White
Commit 03025bba035dffa9d1add2e5e7f3f17074311abd
Parent: 01aaffd9db
Structural diff unavailable

These commits were pushed via plain git push, so no pre-parsed schemas are available. Install git-remote-cospan and re-push via panproto:// to see scope-level changes, breaking change detection, and semantic diffs.

brew install panproto/tap/git-remote-cospan
1 file changed +2 -6
@@ -24,17 +24,13 @@ pub async fn handler(
2424     Json(input): Json<Input>,
2525 ) -> Result<Json<serde_json::Value>, AppError> {
2626     // Parse the source AT-URI to find the Tangled repo
27-    let parsed = at_uri::validate(&input.source_uri)
28-        .map_err(|e| AppError::InvalidRequest(e))?;
27+    let parsed = at_uri::validate(&input.source_uri).map_err(AppError::InvalidRequest)?;
2928 
3029     // Look up the source repo in the DB
3130     let source_repo = db::repo::get(&state.db, &parsed.did, &parsed.rkey)
3231         .await?
3332         .ok_or_else(|| {
34-            AppError::InvalidRequest(format!(
35-                "source repo not found: {}",
36-                input.source_uri
37-            ))
33+            AppError::InvalidRequest(format!("source repo not found: {}", input.source_uri))
3834         })?;
3935 
4036     let repo_name = input.name.unwrap_or_else(|| source_repo.name.clone());
cospan · schematic version control on atproto built on AT Protocol