aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-12-19 20:32:47 -0800
committerbryan newbold <bnewbold@robocracy.org>2022-12-20 00:29:58 -0800
commit8b6dc7a93d6aa37338aa49dfd28f754ad7ee2a23 (patch)
treec35c2271126f43aa5eb35207570ecfb810c4de73
parent758462f8cb9737ea8fb175cb4674984cc30bbd51 (diff)
downloadadenosine-8b6dc7a93d6aa37338aa49dfd28f754ad7ee2a23.tar.gz
adenosine-8b6dc7a93d6aa37338aa49dfd28f754ad7ee2a23.zip
make lint
-rw-r--r--adenosine-pds/src/bsky.rs4
-rw-r--r--adenosine-pds/src/lib.rs2
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<Profile> {
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(),
}))