Skip to content

Commit e1523ce

Browse files
authored
Quick format fix
Quick format fix
2 parents 4f46900 + f1a97b9 commit e1523ce

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

optd-persistent/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ pub use cost_model::interface::CostModelStorageLayer;
1515

1616
pub type StorageResult<T> = Result<T, BackendError>;
1717

18+
#[derive(Debug)]
1819
pub enum CostModelError {
1920
// TODO: Add more error types
2021
UnknownStatisticType,
2122
}
2223

24+
#[derive(Debug)]
2325
pub enum BackendError {
2426
CostModel(CostModelError),
2527
Database(DbErr),

optd-persistent/src/migrator/cost_model/m20241029_000001_statistic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub enum Statistic {
1919
// 0 if a table statistic.
2020
NumberOfAttributes,
2121
// TODO(lanlou): Should we make another table to explain the type mapping?
22+
#[allow(clippy::enum_variant_names)]
2223
StatisticType,
2324
// Store the sorted attribute ids of this statistic, to support quick lookup (OR we can use junction table to look up)
2425
// For example, if we want to store the statistic of attributes [1, 2, 3], we can store it as "1,2,3".

0 commit comments

Comments
 (0)