about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGrisha Vartanyan <grisha@vartanyan.com>2022-03-25 15:05:27 +0100
committerGrisha Vartanyan <grisha@vartanyan.com>2022-03-25 15:05:27 +0100
commit854c3de1ff129ee331d3fad05a447f77d6c9d16b (patch)
tree3b51fb1fbe3b6822ba937e30e85be9e58a4e2775
parent1f069c0ce7a2b0f48a9bae66fb201f4955836762 (diff)
downloadrust-854c3de1ff129ee331d3fad05a447f77d6c9d16b.tar.gz
rust-854c3de1ff129ee331d3fad05a447f77d6c9d16b.zip
Update clippy helper function types
-rw-r--r--clippy_lints/src/regex.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/regex.rs b/clippy_lints/src/regex.rs
index b6d04334de9..a92097e1d24 100644
--- a/clippy_lints/src/regex.rs
+++ b/clippy_lints/src/regex.rs
@@ -81,7 +81,7 @@ impl<'tcx> LateLintPass<'tcx> for Regex {
 
 #[allow(clippy::cast_possible_truncation)] // truncation very unlikely here
 #[must_use]
-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 {
     let offset = u32::from(offset);
     let end = base.lo() + BytePos(u32::try_from(c.end.offset).expect("offset too large") + offset);
     let start = base.lo() + BytePos(u32::try_from(c.start.offset).expect("offset too large") + offset);