Skip to content

Commit

Permalink
fix: clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Sep 2, 2024
1 parent b09fb39 commit c46f0fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/oxc_regular_expression/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ mod test {
let flags = FlagsParser::new(
allocator,
&source[flag_start_offset..],
#[allow(clippy::cast_possible_truncation)]
options.with_span_offset(flag_start_offset as u32),
)
.parse()
Expand All @@ -553,12 +554,14 @@ mod test {
let pattern = PatternParser::new(
allocator,
&source[body_start_offset..body_end_offset],
#[allow(clippy::cast_possible_truncation)]
options.with_span_offset(body_start_offset as u32),
)
.parse()
.unwrap();

let expr = crate::ast::RegularExpression {
#[allow(clippy::cast_possible_truncation)]
span: Span::new(0, source.len() as u32),
pattern,
flags,
Expand Down

0 comments on commit c46f0fc

Please sign in to comment.