Skip to content

Commit 0111656

Browse files
authored
Merge pull request #240 from tatref/hash
impl Hash for kernel version
2 parents 8af1bec + d872de4 commit 0111656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/kernel/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub mod keys;
1515
pub mod random;
1616

1717
/// Represents a kernel version, in major.minor.release version.
18-
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
18+
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
1919
pub struct Version {
2020
pub major: u8,
2121
pub minor: u8,

0 commit comments

Comments
 (0)