summaryrefslogtreecommitdiff
path: root/src/parsing.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-03-11 18:02:47 +0100
committerLaurenz <laurmaedje@gmail.com>2019-03-11 18:02:47 +0100
commit77e52996673e1c3aa7a8beae4d1ee7eb9be0bafb (patch)
tree19184c9a2ebfae58fe422a290e8678b6317729f2 /src/parsing.rs
parent67281c4f469716c7f2341676f2ad656d8c544ea3 (diff)
Tidy up PDF crate 🧹
Diffstat (limited to 'src/parsing.rs')
-rw-r--r--src/parsing.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parsing.rs b/src/parsing.rs
index fc7c72ef..ece65edd 100644
--- a/src/parsing.rs
+++ b/src/parsing.rs
@@ -87,6 +87,7 @@ enum TokensState<'s> {
}
impl PartialEq for TokensState<'_> {
+ #[inline]
fn eq(&self, other: &TokensState) -> bool {
use TokensState as TS;
@@ -262,6 +263,7 @@ pub struct SyntaxTree<'s> {
impl<'s> SyntaxTree<'s> {
/// Create an empty syntax tree.
+ #[inline]
pub fn new() -> SyntaxTree<'s> {
SyntaxTree { nodes: vec![] }
}