Commit 578f2925 authored by Nick Mathewson's avatar Nick Mathewson 🦞
Browse files

ListKind: Use an exhaustive match to future-proof.

parent c721c8ee
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -112,7 +112,10 @@ impl ListKind {
    /// Return true if this source indicates a guard that came from a sample
    /// taken from a network directory at some point.
    pub(crate) fn is_guard_sample(&self) -> bool {
        self != &ListKind::Fallback
        match self {
            ListKind::Primary | ListKind::Confirmed | ListKind::Sample => true,
            ListKind::Fallback => false,
        }
    }
}