Skip to content

Commit 4fe1dc4

Browse files
Impl PartialEq and Eq for IndentLevel
We can impl PartialOrd and Ord too, but I didn't need that.
1 parent 80c1cd4 commit 4fe1dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/syntax/src/ast/edit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::{
88
ted, AstToken, NodeOrToken, SyntaxElement, SyntaxNode, SyntaxToken,
99
};
1010

11-
#[derive(Debug, Clone, Copy)]
11+
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
1212
pub struct IndentLevel(pub u8);
1313

1414
impl From<u8> for IndentLevel {

0 commit comments

Comments
 (0)