mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Use byte literal instead of cast and ignore too_many_args
This commit is contained in:
parent
c9f001b041
commit
a2f940be4e
3 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -261,6 +261,7 @@ pub fn constrain_pattern(
|
|||
);
|
||||
}
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn constrain_pattern_help(
|
||||
types: &mut Types,
|
||||
constraints: &mut Constraints,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue