This commit is contained in:
Jonathan Kelley committed 2021-07-13 15:34:12 -04:00
1 parent 4091846934
commit 996247a164
7 files changed
+171 -122

No files matched your search

+10
View File
@@ -1379,3 +1379,13 @@ impl<'a> Iterator for RealChildIterator<'a> {
returned_node
}
}
fn compare_strs(a: &str, b: &str) -> bool {
// Check by pointer, optimizing for static strs
if !std::ptr::eq(a, b) {
// If the pointers are different then check by value
a == b
} else {
true
}
}