Skip to content

Commit 888bf69

Browse files
committed
Replace string literal with static variable.
1 parent 912b413 commit 888bf69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lumberjack/src/io/encode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ impl Decode for Tree {
311311
let root = self.root();
312312
if self[root]
313313
.nonterminal()
314-
.map(|nt| nt.label() == "DUMMY")
314+
.map(|nt| nt.label() == EMPTY_NODE)
315315
.unwrap_or(false)
316316
&& self.children(root).count() == 1
317317
{

0 commit comments

Comments
 (0)