diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-13 15:11:42 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-07-13 15:24:26 +0200 |
| commit | 81f2f8f4c335dc399174d7c44a226bbc2cf98c8f (patch) | |
| tree | b1ece2e580f939c2cd9322773ee62e40308d742b /src/parse/lines.rs | |
| parent | 0481192a77f953e3bef727326bd93413f709c447 (diff) | |
Optimize scanner and tokenizer
Diffstat (limited to 'src/parse/lines.rs')
| -rw-r--r-- | src/parse/lines.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse/lines.rs b/src/parse/lines.rs index b6d8a60f..e42d110b 100644 --- a/src/parse/lines.rs +++ b/src/parse/lines.rs @@ -94,6 +94,7 @@ pub fn search_column(src: &str) -> usize { } /// Whether this character denotes a newline. +#[inline] pub fn is_newline(character: char) -> bool { matches!( character, |
