Skip to content

Commit

Permalink
Impl PartialEq and Eq for IndentLevel
Browse files Browse the repository at this point in the history
We can impl PartialOrd and Ord too, but I didn't need that.
  • Loading branch information
ChayimFriedman2 committed Aug 22, 2024
1 parent edf6772 commit a28eca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/syntax/src/ast/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a28eca6

Please sign in to comment.