diff --git a/.github/renovate.json5 b/.github/renovate.json5 index c184420..7ab13b9 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -32,7 +32,7 @@ matchManagers: [ 'custom.regex', ], - matchPackageNames: [ + matchDepNames: [ 'STABLE', ], extractVersion: '^(?\\d+\\.\\d+)', // Drop the patch version diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc7fa01..82108a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -144,7 +144,7 @@ jobs: run: cargo install sarif-fmt --locked - name: Check run: > - cargo clippy --workspace --all-features --all-targets --message-format=json -- -D warnings --allow deprecated + cargo clippy --workspace --all-features --all-targets --message-format=json | clippy-sarif | tee clippy-results.sarif | sarif-fmt diff --git a/Cargo.toml b/Cargo.toml index d66ef09..0b03d94 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -70,6 +70,7 @@ rc_mutex = "warn" redundant_feature_names = "warn" ref_option_ref = "warn" rest_pat_in_fully_bound_structs = "warn" +result_large_err = "allow" same_functions_in_if_condition = "warn" self_named_module_files = "warn" semicolon_if_nothing_returned = "warn" @@ -99,7 +100,7 @@ include.workspace = true [package.metadata.docs.rs] all-features = true -rustdoc-args = ["--cfg", "docsrs"] +rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] [package.metadata.release] tag-name = "{{version}}" diff --git a/src/renderer/display_list.rs b/src/renderer/display_list.rs index 8884b0d..c2cb82b 100644 --- a/src/renderer/display_list.rs +++ b/src/renderer/display_list.rs @@ -55,13 +55,13 @@ pub(crate) struct DisplayList<'a> { pub(crate) anonymized_line_numbers: bool, } -impl<'a> PartialEq for DisplayList<'a> { +impl PartialEq for DisplayList<'_> { fn eq(&self, other: &Self) -> bool { self.body == other.body && self.anonymized_line_numbers == other.anonymized_line_numbers } } -impl<'a> fmt::Debug for DisplayList<'a> { +impl fmt::Debug for DisplayList<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("DisplayList") .field("body", &self.body) @@ -70,7 +70,7 @@ impl<'a> fmt::Debug for DisplayList<'a> { } } -impl<'a> Display for DisplayList<'a> { +impl Display for DisplayList<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let lineno_width = self.body.iter().fold(0, |max, set| { set.display_lines.iter().fold(max, |max, line| match line { @@ -156,7 +156,7 @@ pub(crate) struct DisplaySet<'a> { pub(crate) margin: Margin, } -impl<'a> DisplaySet<'a> { +impl DisplaySet<'_> { fn format_label( &self, line_offset: usize, @@ -791,7 +791,7 @@ pub(crate) struct DisplaySourceAnnotation<'a> { pub(crate) annotation_part: DisplayAnnotationPart, } -impl<'a> DisplaySourceAnnotation<'a> { +impl DisplaySourceAnnotation<'_> { fn has_label(&self) -> bool { !self .annotation @@ -932,7 +932,7 @@ pub(crate) enum DisplayHeaderType { struct CursorLines<'a>(&'a str); -impl<'a> CursorLines<'a> { +impl CursorLines<'_> { fn new(src: &str) -> CursorLines<'_> { CursorLines(src) }