Skip to content

Commit

Permalink
remove Hash derive
Browse files Browse the repository at this point in the history
  • Loading branch information
zwang28 committed Nov 1, 2023
1 parent 3de590c commit 883c07d
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions src/prost/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,25 +116,23 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.type_attribute("plan_common.ColumnDesc", "#[derive(Eq, Hash)]")
.type_attribute("common.ColumnOrder", "#[derive(Eq, Hash)]")
.type_attribute("common.OrderType", "#[derive(Eq, Hash)]")
.type_attribute("hummock.TableStats", "#[derive(Eq, Hash)]")
.type_attribute("hummock.SstableInfo", "#[derive(Eq, Hash)]")
.type_attribute("hummock.KeyRange", "#[derive(Eq, Hash)]")
.type_attribute("hummock.CompactionConfig", "#[derive(Eq, Hash)]")
.type_attribute("hummock.GroupDelta.delta_type", "#[derive(Eq, Hash)]")
.type_attribute("hummock.IntraLevelDelta", "#[derive(Eq, Hash)]")
.type_attribute("hummock.GroupConstruct", "#[derive(Eq, Hash)]")
.type_attribute("hummock.GroupDestroy", "#[derive(Eq, Hash)]")
.type_attribute("hummock.GroupMetaChange", "#[derive(Eq, Hash)]")
.type_attribute("hummock.GroupTableChange", "#[derive(Eq, Hash)]")
.type_attribute("hummock.GroupDelta", "#[derive(Eq, Hash)]")
.type_attribute(
"hummock.LevelHandler.RunningCompactTask",
"#[derive(Eq, Hash)]",
)
.type_attribute("hummock.LevelHandler", "#[derive(Eq, Hash)]")
.type_attribute("hummock.TableOption", "#[derive(Eq, Hash)]")
.type_attribute("hummock.InputLevel", "#[derive(Eq, Hash)]")
.type_attribute("hummock.CompactTask", "#[derive(Eq, Hash)]")
// Eq is required to derive `FromJsonQueryResult` for models in risingwave_meta_model_v2.
.type_attribute("hummock.TableStats", "#[derive(Eq)]")
.type_attribute("hummock.SstableInfo", "#[derive(Eq)]")
.type_attribute("hummock.KeyRange", "#[derive(Eq)]")
.type_attribute("hummock.CompactionConfig", "#[derive(Eq)]")
.type_attribute("hummock.GroupDelta.delta_type", "#[derive(Eq)]")
.type_attribute("hummock.IntraLevelDelta", "#[derive(Eq)]")
.type_attribute("hummock.GroupConstruct", "#[derive(Eq)]")
.type_attribute("hummock.GroupDestroy", "#[derive(Eq)]")
.type_attribute("hummock.GroupMetaChange", "#[derive(Eq)]")
.type_attribute("hummock.GroupTableChange", "#[derive(Eq)]")
.type_attribute("hummock.GroupDelta", "#[derive(Eq)]")
.type_attribute("hummock.LevelHandler.RunningCompactTask", "#[derive(Eq)]")
.type_attribute("hummock.LevelHandler", "#[derive(Eq)]")
.type_attribute("hummock.TableOption", "#[derive(Eq)]")
.type_attribute("hummock.InputLevel", "#[derive(Eq)]")
.type_attribute("hummock.CompactTask", "#[derive(Eq)]")
// ===================
.out_dir(out_dir.as_path())
.compile(&protos, &[proto_dir.to_string()])
Expand Down

0 comments on commit 883c07d

Please sign in to comment.