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

Commit 3c96b79f 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 am: 83d4a172

parents f861d9c5 83d4a172
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