cargo clippy & cargo fmt

This commit is contained in:
Mike Dilger 2023-02-03 19:56:56 +13:00
parent a375574393
commit 919b8a96b6
3 changed files with 4 additions and 4 deletions

View File

@ -379,7 +379,7 @@ impl Minion {
kinds.push(EventKind::Reaction);
}
filters.push(Filter {
p: vec![pkh.clone().into()],
p: vec![pkh.clone()],
kinds: vec![EventKind::TextNote],
since: Some(replies_since),
..Default::default()
@ -387,7 +387,7 @@ impl Minion {
// Listen for my metadata and similar kinds of posts
filters.push(Filter {
authors: vec![pkh.clone().into()],
authors: vec![pkh.into()],
kinds: vec![
EventKind::Metadata,
EventKind::RecommendRelay,

View File

@ -761,7 +761,7 @@ impl Overlord {
// FIXME: Should we avoid taging people who are muted?
for tag in &event.tags {
if let Tag::Pubkey { pubkey, .. } = tag {
if pubkey.as_str() != &public_key.as_hex_string() {
if pubkey.as_str() != public_key.as_hex_string() {
add_pubkey_hex_to_tags(&mut tags, pubkey).await;
}
}

View File

@ -105,7 +105,7 @@ pub(super) fn update(app: &mut GossipUi, ctx: &Context, frame: &mut eframe::Fram
}
FeedKind::Person(pubkeyhex) => {
let feed = GLOBALS.feed.get_person_feed(pubkeyhex.clone());
render_a_feed(app, ctx, frame, ui, feed, false, &pubkeyhex.as_str());
render_a_feed(app, ctx, frame, ui, feed, false, pubkeyhex.as_str());
}
}
}