mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 19:46:50 +00:00
cargo fmt
This commit is contained in:
parent
ed24e8b131
commit
5120ebc4df
@ -20,7 +20,7 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr
|
||||
let _ = GLOBALS
|
||||
.to_overlord
|
||||
.send(ToOverlordMessage::AddRelay(app.new_relay_url.clone()));
|
||||
if let Ok(db_relay) = DbRelay::new(app.new_relay_url.clone()){
|
||||
if let Ok(db_relay) = DbRelay::new(app.new_relay_url.clone()) {
|
||||
GLOBALS.relays.blocking_write().insert(test_url, db_relay);
|
||||
}
|
||||
app.new_relay_url = "".to_owned();
|
||||
@ -81,7 +81,7 @@ pub(super) fn update(app: &mut GossipUi, _ctx: &Context, _frame: &mut eframe::Fr
|
||||
|
||||
ScrollArea::vertical().show(ui, |ui| {
|
||||
for relay in relays.iter_mut() {
|
||||
if ! relay.post {
|
||||
if !relay.post {
|
||||
render_relay(ui, relay, false);
|
||||
ui.add_space(3.0);
|
||||
ui.separator();
|
||||
|
Loading…
Reference in New Issue
Block a user