funny comment

This commit is contained in:
LinlyBoi
2023-05-02 17:59:59 +03:00
parent a8f0ed948f
commit f9f150ef5f

View File

@@ -139,6 +139,7 @@ pub enum Direction {
DOWNRIGHT, DOWNRIGHT,
} }
// serves nothing except do what matches!() should have done all along // serves nothing except do what matches!() should have done all along
// matches works too I'm just dumb
pub fn variant_eq<T>(a: &T, b: &T) -> bool { pub fn variant_eq<T>(a: &T, b: &T) -> bool {
std::mem::discriminant(a) == std::mem::discriminant(b) std::mem::discriminant(a) == std::mem::discriminant(b)
} }