mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-30 00:41:42 +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);
|
kinds.push(EventKind::Reaction);
|
||||||
}
|
}
|
||||||
filters.push(Filter {
|
filters.push(Filter {
|
||||||
p: vec![pkh.clone().into()],
|
p: vec![pkh.clone()],
|
||||||
kinds: vec![EventKind::TextNote],
|
kinds: vec![EventKind::TextNote],
|
||||||
since: Some(replies_since),
|
since: Some(replies_since),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
@ -387,7 +387,7 @@ impl Minion {
|
|||||||
|
|
||||||
// Listen for my metadata and similar kinds of posts
|
// Listen for my metadata and similar kinds of posts
|
||||||
filters.push(Filter {
|
filters.push(Filter {
|
||||||
authors: vec![pkh.clone().into()],
|
authors: vec![pkh.into()],
|
||||||
kinds: vec![
|
kinds: vec![
|
||||||
EventKind::Metadata,
|
EventKind::Metadata,
|
||||||
EventKind::RecommendRelay,
|
EventKind::RecommendRelay,
|
||||||
|
@ -761,7 +761,7 @@ impl Overlord {
|
|||||||
// FIXME: Should we avoid taging people who are muted?
|
// FIXME: Should we avoid taging people who are muted?
|
||||||
for tag in &event.tags {
|
for tag in &event.tags {
|
||||||
if let Tag::Pubkey { pubkey, .. } = tag {
|
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;
|
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) => {
|
FeedKind::Person(pubkeyhex) => {
|
||||||
let feed = GLOBALS.feed.get_person_feed(pubkeyhex.clone());
|
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