Fix minimal-versions (.then_some is too new)

This commit is contained in:
Ian Jackson 2023-02-09 15:21:04 +00:00
parent 4b7f2e84bf
commit 3d6e6fcf0d
1 changed files with 1 additions and 1 deletions

View File

@ -955,7 +955,7 @@ impl NetDir {
fn all_hsdirs(&self) -> impl Iterator<Item = (RouterStatusIdx, Relay<'_>)> {
self.c_relays().iter_enumerated().filter_map(|(rsi, rs)| {
let relay = self.relay_from_rs_and_idx(rs, rsi);
relay.is_hsdir_for_ring().then_some(())?;
relay.is_hsdir_for_ring().then(|| ())?;
let relay = relay.into_relay()?;
Some((rsi, relay))
})