Fix the long-standing bug with invalid matches!() use

berkus
Feb 17, 2026, 12:21 AM
PFUBEQCVDIR7J75ZA4QBYEV3UAV365HUCVWE5SP3WACPO3OVL35AC

Dependencies

  • [2] FOCBVLOU Implement testing for identity management
  • [3] OMGL7JBC Bump pijul-core to edition 2024
  • [4] HJVWPKWV Migrate crates to edition 2024

Change contents

  • replacement in pijul/tests/common/mod.rs at line 79
    [2.12755][2.12755:12870](),[2.12870][3.6176:6246]()
    let interaction_type = second_attempt.input;
    if !matches!(&self.input, interaction_type) {
    // this matches against a type but given a variable..
    [2.12755]
    [2.12870]
    if std::mem::discriminant(&self.input) != std::mem::discriminant(&second_attempt.input)
    {