assertions and small cleanups

This commit is contained in:
Jussi Saurio 2025-02-03 13:08:13 +02:00
parent 8b1f0ea23c
commit 750a9c6463
4 changed files with 20 additions and 14 deletions

View file

@ -66,8 +66,14 @@ impl Table {
pub fn get_column_at(&self, index: usize) -> &Column {
match self {
Self::BTree(table) => table.columns.get(index).unwrap(),
Self::Pseudo(table) => table.columns.get(index).unwrap(),
Self::BTree(table) => table
.columns
.get(index)
.expect("column index out of bounds"),
Self::Pseudo(table) => table
.columns
.get(index)
.expect("column index out of bounds"),
}
}