diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2022-12-19 20:32:47 -0800 |
---|---|---|
committer | bryan newbold <bnewbold@robocracy.org> | 2022-12-20 00:29:58 -0800 |
commit | 8b6dc7a93d6aa37338aa49dfd28f754ad7ee2a23 (patch) | |
tree | c35c2271126f43aa5eb35207570ecfb810c4de73 /adenosine-pds/src/bsky.rs | |
parent | 758462f8cb9737ea8fb175cb4674984cc30bbd51 (diff) | |
download | adenosine-8b6dc7a93d6aa37338aa49dfd28f754ad7ee2a23.tar.gz adenosine-8b6dc7a93d6aa37338aa49dfd28f754ad7ee2a23.zip |
make lint
Diffstat (limited to 'adenosine-pds/src/bsky.rs')
-rw-r--r-- | adenosine-pds/src/bsky.rs | 4 |
1 files changed, 2 insertions, 2 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())?); } } |