Skip to content
This repository was archived by the owner on Mar 22, 2024. It is now read-only.

Commit 169368b

Browse files
committed
fix some clippy
1 parent 41bdcfe commit 169368b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/engine.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ impl State {
142142
repeat_ctx_id: usize::MAX,
143143
count: -1,
144144
};
145-
_match(&req, self, ctx)
145+
_match(req, self, ctx)
146146
}
147147

148148
pub fn search<S: StrDrive>(&mut self, mut req: Request<S>) -> bool {
@@ -1400,16 +1400,16 @@ fn _count<S: StrDrive>(
14001400
}
14011401
}
14021402
SreOpcode::LITERAL => {
1403-
general_count_literal(req, &mut ctx, end, |code, c| code == c as u32);
1403+
general_count_literal(req, &mut ctx, end, |code, c| code == c);
14041404
}
14051405
SreOpcode::NOT_LITERAL => {
1406-
general_count_literal(req, &mut ctx, end, |code, c| code != c as u32);
1406+
general_count_literal(req, &mut ctx, end, |code, c| code != c);
14071407
}
14081408
SreOpcode::LITERAL_IGNORE => {
1409-
general_count_literal(req, &mut ctx, end, |code, c| code == lower_ascii(c) as u32);
1409+
general_count_literal(req, &mut ctx, end, |code, c| code == lower_ascii(c));
14101410
}
14111411
SreOpcode::NOT_LITERAL_IGNORE => {
1412-
general_count_literal(req, &mut ctx, end, |code, c| code != lower_ascii(c) as u32);
1412+
general_count_literal(req, &mut ctx, end, |code, c| code != lower_ascii(c));
14131413
}
14141414
SreOpcode::LITERAL_LOC_IGNORE => {
14151415
general_count_literal(req, &mut ctx, end, char_loc_ignore);
@@ -1419,12 +1419,12 @@ fn _count<S: StrDrive>(
14191419
}
14201420
SreOpcode::LITERAL_UNI_IGNORE => {
14211421
general_count_literal(req, &mut ctx, end, |code, c| {
1422-
code == lower_unicode(c) as u32
1422+
code == lower_unicode(c)
14231423
});
14241424
}
14251425
SreOpcode::NOT_LITERAL_UNI_IGNORE => {
14261426
general_count_literal(req, &mut ctx, end, |code, c| {
1427-
code != lower_unicode(c) as u32
1427+
code != lower_unicode(c)
14281428
});
14291429
}
14301430
_ => {

0 commit comments

Comments
 (0)