From 6d371a50e3b8520ef0e88a53f95097b8afa754c6 Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Mon, 21 Apr 2025 00:47:09 +0100 Subject: [PATCH] add unreachable pattern warnings to RowIndexLookupHelper implementations --- src/frame/base.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frame/base.rs b/src/frame/base.rs index b172b18..69c7ee7 100644 --- a/src/frame/base.rs +++ b/src/frame/base.rs @@ -602,6 +602,7 @@ impl RowIndexLookupHelper for Frame { panic!("Frame index: incompatible key type usize for Date index") } // Ensure state consistency + #[allow(unreachable_patterns)] (RowIndex::Int(_), RowIndexLookup::None) | (RowIndex::Int(_), RowIndexLookup::Date(_)) | (RowIndex::Date(_), RowIndexLookup::Int(_)) @@ -634,6 +635,7 @@ impl RowIndexLookupHelper for Frame { panic!("Frame index: incompatible key type NaiveDate for Int or Range index") } // Ensure state consistency + #[allow(unreachable_patterns)] (RowIndex::Date(_), RowIndexLookup::None) | (RowIndex::Date(_), RowIndexLookup::Int(_)) | (RowIndex::Int(_), RowIndexLookup::Date(_))