Impl PartialEq and Eq for IndentLevel

We can impl PartialOrd and Ord too, but I didn't need that.
This commit is contained in:
Chayim Refael Friedman 2024-08-22 14:41:54 +03:00
parent 5c59a718c5
commit 52462ada22

View file

@ -8,7 +8,7 @@ use crate::{
ted, AstToken, NodeOrToken, SyntaxElement, SyntaxNode, SyntaxToken, ted, AstToken, NodeOrToken, SyntaxElement, SyntaxNode, SyntaxToken,
}; };
#[derive(Debug, Clone, Copy)] #[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct IndentLevel(pub u8); pub struct IndentLevel(pub u8);
impl From<u8> for IndentLevel { impl From<u8> for IndentLevel {