about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorChayim Refael Friedman <chayimfr@gmail.com>2024-08-22 14:41:54 +0300
committerChayim Refael Friedman <chayimfr@gmail.com>2024-08-24 23:46:32 +0300
commitbecfc5aeb9a5aec1ffb62b9540316efcb94b32ae (patch)
tree4a0767d4a42c53f503f66382babd0d611e854719 /src
parent634052268fec5ad208e8e1b461904c12fadb8dc4 (diff)
downloadrust-becfc5aeb9a5aec1ffb62b9540316efcb94b32ae.tar.gz
rust-becfc5aeb9a5aec1ffb62b9540316efcb94b32ae.zip
Impl PartialEq and Eq for `IndentLevel`
We can impl PartialOrd and Ord too, but I didn't need that.
Diffstat (limited to 'src')
-rw-r--r--src/tools/rust-analyzer/crates/syntax/src/ast/edit.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rust-analyzer/crates/syntax/src/ast/edit.rs b/src/tools/rust-analyzer/crates/syntax/src/ast/edit.rs
index 5bc6b780e47..de40d638be3 100644
--- a/src/tools/rust-analyzer/crates/syntax/src/ast/edit.rs
+++ b/src/tools/rust-analyzer/crates/syntax/src/ast/edit.rs
@@ -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 {