mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 16:31:18 +00:00
cargo clippy & cargo fmt
This commit is contained in:
parent
a375574393
commit
919b8a96b6
@ -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,
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user