Mercurial > crates > nonstick
comparison src/libpam/memory.rs @ 186:5e4ea9650f87
Derive `hash` where it makes sense.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Thu, 31 Jul 2025 14:48:32 -0400 |
parents | fb8b547b36b7 |
children |
comparison
equal
deleted
inserted
replaced
185:fb8b547b36b7 | 186:5e4ea9650f87 |
---|---|
21 } | 21 } |
22 ) => { | 22 ) => { |
23 // This is the one place where we depend upon c_int being i32. | 23 // This is the one place where we depend upon c_int being i32. |
24 // Ideally, we would be able to say `repr(c_int)` but we can't. | 24 // Ideally, we would be able to say `repr(c_int)` but we can't. |
25 $(#[$m])* | 25 $(#[$m])* |
26 #[derive(Clone, Copy, Debug, Eq, PartialEq)] | 26 #[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)] |
27 #[repr(i32)] | 27 #[repr(i32)] |
28 $viz enum $name { | 28 $viz enum $name { |
29 $( | 29 $( |
30 $(#[$im])* | 30 $(#[$im])* |
31 $item_name = $item_value, | 31 $item_name = $item_value, |