From f1b80f13f9408db9f76410c717d67d4f9cf7ed2a Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 22 Nov 2022 11:31:06 -0800 Subject: clippy cleanups --- adenosine-pds/src/lib.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'adenosine-pds/src/lib.rs') diff --git a/adenosine-pds/src/lib.rs b/adenosine-pds/src/lib.rs index a7cb4ae..6a3a8cb 100644 --- a/adenosine-pds/src/lib.rs +++ b/adenosine-pds/src/lib.rs @@ -433,7 +433,7 @@ fn xrpc_get_handler( name: did.to_string(), // TODO: handle? did: did.to_string(), didDoc: did_doc, - collections: collections, + collections, nameIsCorrect: true, }; Ok(json!(desc)) @@ -454,7 +454,7 @@ fn xrpc_get_handler( "app.bsky.feed.getTimeline" => { let mut srv = srv.lock().unwrap(); let auth_did = &xrpc_check_auth_header(&mut srv, request, None)?; - Ok(json!(bsky_get_timeline(&mut srv, &auth_did)?)) + Ok(json!(bsky_get_timeline(&mut srv, auth_did)?)) } "app.bsky.feed.getPostThread" => { let uri = AtUri::from_str(&xrpc_required_param(request, "uri")?)?; @@ -473,7 +473,7 @@ fn xrpc_get_repo_handler(srv: &Mutex, request: &Request) -> Result Err(anyhow!(XrpcError::NotFound(format!( @@ -724,7 +724,7 @@ fn home_view_handler(srv: &Mutex, request: &Request) -> Result, did: &str, request: &Request) -> R name: did.to_string(), // TODO did: did.to_string(), didDoc: did_doc, - collections: collections, + collections, nameIsCorrect: true, }; Ok(RepoView { domain: host.to_string(), - did: did, - commit: commit, + did, + commit, describe: desc, } .render()?) @@ -854,8 +854,8 @@ fn collection_view_handler( Ok(CollectionView { domain: host.to_string(), - did: did, - collection: collection, + did, + collection, records: record_list, } .render()?) -- cgit v1.2.3