Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83d4a172 authored by Aka (Chih-Yu) Huang's avatar Aka (Chih-Yu) Huang Committed by Automerger Merge Worker
Browse files

Merge "Packetgen: make struct derive PartialEq trait in Rust" am: 1ae2b697

parents 731d58bf 1ae2b697
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -342,7 +342,7 @@ void StructDef::GenRustFieldNames(std::ostream& s) const {
}

void StructDef::GenRustDeclarations(std::ostream& s) const {
  s << "#[derive(Debug, Clone)] ";
  s << "#[derive(Debug, Clone, PartialEq)] ";
  s << "pub struct " << name_ << "{";

  // Generate struct fields