We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 104ba47 + 854c3de commit 7af3565Copy full SHA for 7af3565
clippy_lints/src/regex.rs
@@ -81,7 +81,7 @@ impl<'tcx> LateLintPass<'tcx> for Regex {
81
82
#[allow(clippy::cast_possible_truncation)] // truncation very unlikely here
83
#[must_use]
84
-fn str_span(base: Span, c: regex_syntax::ast::Span, offset: u16) -> Span {
+fn str_span(base: Span, c: regex_syntax::ast::Span, offset: u8) -> Span {
85
let offset = u32::from(offset);
86
let end = base.lo() + BytePos(u32::try_from(c.end.offset).expect("offset too large") + offset);
87
let start = base.lo() + BytePos(u32::try_from(c.start.offset).expect("offset too large") + offset);
0 commit comments