From 8b6dc7a93d6aa37338aa49dfd28f754ad7ee2a23 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 19 Dec 2022 20:32:47 -0800 Subject: make lint --- adenosine-pds/src/bsky.rs | 4 ++-- adenosine-pds/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/adenosine-pds/src/bsky.rs b/adenosine-pds/src/bsky.rs index 89978fb..ed4fe10 100644 --- a/adenosine-pds/src/bsky.rs +++ b/adenosine-pds/src/bsky.rs @@ -68,7 +68,7 @@ pub fn bsky_get_profile(srv: &mut AtpService, did: &Did) -> Result { let full_map = srv.repo.mst_to_map(&last_commit.mst_cid)?; let prefix = "/app.bsky.actor.profile/"; for (mst_key, cid) in full_map.iter() { - if mst_key.starts_with(&prefix) { + if mst_key.starts_with(prefix) { profile_cid = Some(*cid); } } @@ -120,7 +120,7 @@ pub fn bsky_update_profile(srv: &mut AtpService, did: &Did, profile: ProfileReco let full_map = srv.repo.mst_to_map(&last_commit.mst_cid)?; let prefix = "/app.bsky.actor.profile/"; for (mst_key, _cid) in full_map.iter() { - if mst_key.starts_with(&prefix) { + if mst_key.starts_with(prefix) { profile_tid = Some(Tid::from_str(mst_key.split('/').nth(2).unwrap())?); } } diff --git a/adenosine-pds/src/lib.rs b/adenosine-pds/src/lib.rs index 6c4649d..9721652 100644 --- a/adenosine-pds/src/lib.rs +++ b/adenosine-pds/src/lib.rs @@ -617,7 +617,7 @@ fn xrpc_post_handler( Ok(json!(AtpSession { did: did.to_string(), - name: handle.to_string(), + name: handle, accessJwt: jwt.to_string(), refreshJwt: jwt.to_string(), })) -- cgit v1.2.3