summaryrefslogtreecommitdiff
path: root/src/syntax/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-15 16:59:49 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-15 17:06:43 +0100
commit63c274e7f6aa3a8c3f43abb91935ec924a186f73 (patch)
tree193777ff773c6b547c6ef828ddf9750694fae7bc /src/syntax/mod.rs
parent8a38899c98b4f9829b2d1f21c8fee66d254d20c6 (diff)
Make clippy happier and remove `Str`
Diffstat (limited to 'src/syntax/mod.rs')
-rw-r--r--src/syntax/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs
index ca6ed243..6f04cdc9 100644
--- a/src/syntax/mod.rs
+++ b/src/syntax/mod.rs
@@ -30,7 +30,7 @@ impl Green {
fn data(&self) -> &GreenData {
match self {
Green::Node(n) => &n.data,
- Green::Token(t) => &t,
+ Green::Token(t) => t,
}
}
@@ -55,7 +55,7 @@ impl Green {
/// The node's children.
pub fn children(&self) -> &[Green] {
match self {
- Green::Node(n) => &n.children(),
+ Green::Node(n) => n.children(),
Green::Token(_) => &[],
}
}