Skip to content

Commit

Permalink
cargo clippy & fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedilger committed Sep 14, 2023
1 parent 57189b4 commit 2b0aaba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/storage/migrations/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl Storage {

fn remove_invalid_relays<'a>(&'a self, rw_txn: &mut RwTxn<'a>) -> Result<(), Error> {
let bad_relays =
self.filter_relays(|relay| RelayUrl::try_from_str(&relay.url.as_str()).is_err())?;
self.filter_relays(|relay| RelayUrl::try_from_str(relay.url.as_str()).is_err())?;

for relay in &bad_relays {
tracing::info!("Deleting bad relay: {}", relay.url);
Expand Down
2 changes: 1 addition & 1 deletion src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2235,7 +2235,7 @@ impl Storage {
for ranked_relay in ranked_relays.iter_mut() {
let relay = match self.read_relay(&ranked_relay.0)? {
None => {
let _ = self.write_relay_if_missing(&ranked_relay.0, None)?;
self.write_relay_if_missing(&ranked_relay.0, None)?;
Relay::new(ranked_relay.0.clone())
}
Some(relay) => relay,
Expand Down

0 comments on commit 2b0aaba

Please sign in to comment.