Use byte literal instead of cast and ignore too_many_args

This commit is contained in:
Agus Zubiaga 2024-10-24 00:27:20 -03:00
parent c9f001b041
commit a2f940be4e
No known key found for this signature in database
3 changed files with 3 additions and 1 deletions

View file

@ -56,6 +56,7 @@ pub struct Env<'a> {
}
impl<'a> Env<'a> {
#[allow(clippy::too_many_arguments)]
pub fn new(
arena: &'a Bump,
src: &'a str,

View file

@ -261,6 +261,7 @@ pub fn constrain_pattern(
);
}
#[allow(clippy::too_many_arguments)]
pub fn constrain_pattern_help(
types: &mut Types,
constraints: &mut Constraints,

View file

@ -383,7 +383,7 @@ impl IdentSuffix {
debug_assert!(len > 0, "Ident name must not be empty");
if bytes[len - 1] == ('!' as u8) {
if bytes[len - 1] == b'!' {
IdentSuffix::Bang
} else {
IdentSuffix::None