Skip to content

Commit 1e4b2c9

Browse files
jdmSimonSapin
authored andcommitted
Inline Delimiters methods.
1 parent 2ec00aa commit 1e4b2c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/parser.rs

+3
Original file line numberDiff line numberDiff line change
@@ -200,16 +200,19 @@ mod ClosingDelimiter {
200200
impl BitOr<Delimiters> for Delimiters {
201201
type Output = Delimiters;
202202

203+
#[inline]
203204
fn bitor(self, other: Delimiters) -> Delimiters {
204205
Delimiters { bits: self.bits | other.bits }
205206
}
206207
}
207208

208209
impl Delimiters {
210+
#[inline]
209211
fn contains(self, other: Delimiters) -> bool {
210212
(self.bits & other.bits) != 0
211213
}
212214

215+
#[inline]
213216
fn from_byte(byte: Option<u8>) -> Delimiters {
214217
match byte {
215218
Some(b';') => Delimiter::Semicolon,

0 commit comments

Comments
 (0)