Better return type

This commit is contained in:
Dominik Werder
2025-05-21 15:12:59 +02:00
parent 3faf8de131
commit 5003798a1c

View File

@@ -2856,10 +2856,10 @@ impl BinnedRangeEnum {
}
}
pub fn binned_range_time(&self) -> BinnedRange<TsNano> {
pub fn binned_range_time(&self) -> Option<BinnedRange<TsNano>> {
match self {
BinnedRangeEnum::Time(x) => x.clone(),
BinnedRangeEnum::Pulse(_) => panic!(),
BinnedRangeEnum::Time(x) => Some(x.clone()),
BinnedRangeEnum::Pulse(_) => None,
}
}