diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-03-11 18:02:47 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-03-11 18:02:47 +0100 |
| commit | 77e52996673e1c3aa7a8beae4d1ee7eb9be0bafb (patch) | |
| tree | 19184c9a2ebfae58fe422a290e8678b6317729f2 /src/parsing.rs | |
| parent | 67281c4f469716c7f2341676f2ad656d8c544ea3 (diff) | |
Tidy up PDF crate 🧹
Diffstat (limited to 'src/parsing.rs')
| -rw-r--r-- | src/parsing.rs | 2 |
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![] } } |
