Impl PartialEq and Eq for IndentLevel
We can impl PartialOrd and Ord too, but I didn't need that.
This commit is contained in:
parent
634052268f
commit
becfc5aeb9
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ use crate::{
|
|||
ted, AstToken, NodeOrToken, SyntaxElement, SyntaxNode, SyntaxToken,
|
||||
};
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub struct IndentLevel(pub u8);
|
||||
|
||||
impl From<u8> for IndentLevel {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue