Skip to content

Commit 48f7c9a

Browse files
committed
remove deprecated lints from cargo.toml, elide life-time where possible
1 parent c5956c7 commit 48f7c9a

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,9 @@ cenum-impl-drop-cast = "forbid"
3131
coherence-leak-check = "forbid"
3232
conflicting-repr-hints = "forbid"
3333
const-evaluatable-unchecked = "forbid"
34-
deprecated-cfg-attr-crate-type-name = "forbid"
3534
deref-into-dyn-supertrait = "forbid"
3635
forbidden-lint-groups = "allow"
3736
ill-formed-attribute-input = "forbid"
38-
indirect-structural-match = "forbid"
3937
invalid-doc-attributes = "forbid"
4038
invalid-type-param-default = "forbid"
4139
late-bound-lifetime-arguments = "forbid"
@@ -44,18 +42,15 @@ macro-expanded-macro-exports-accessed-by-absolute-paths = "forbid"
4442
missing-fragment-specifier = "forbid"
4543
order-dependent-trait-objects = "forbid"
4644
patterns-in-fns-without-body = "forbid"
47-
pointer-structural-match = "forbid"
4845
private_bounds = "forbid"
4946
private_interfaces = "forbid"
50-
proc-macro-back-compat = "forbid"
5147
proc-macro-derive-resolution-fallback = "forbid"
5248
pub-use-of-private-extern-crate = "forbid"
5349
semicolon-in-expressions-from-macros = "forbid"
5450
soft-unstable = "forbid"
5551
uninhabited-static = "forbid"
5652
unstable-name-collisions = "forbid"
5753
unsupported-calling-conventions = "forbid"
58-
where-clauses-object-safety = "forbid"
5954
missing_docs = "deny"
6055
rust-2021-compatibility = "deny"
6156
rust-2018-idioms = "deny"

lcov2cobertura/Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@ cenum-impl-drop-cast = "forbid"
2525
coherence-leak-check = "forbid"
2626
conflicting-repr-hints = "forbid"
2727
const-evaluatable-unchecked = "forbid"
28-
deprecated-cfg-attr-crate-type-name = "forbid"
2928
deref-into-dyn-supertrait = "forbid"
3029
forbidden-lint-groups = "allow"
3130
ill-formed-attribute-input = "forbid"
32-
indirect-structural-match = "forbid"
3331
invalid-doc-attributes = "forbid"
3432
invalid-type-param-default = "forbid"
3533
late-bound-lifetime-arguments = "forbid"
@@ -38,18 +36,15 @@ macro-expanded-macro-exports-accessed-by-absolute-paths = "forbid"
3836
missing-fragment-specifier = "forbid"
3937
order-dependent-trait-objects = "forbid"
4038
patterns-in-fns-without-body = "forbid"
41-
pointer-structural-match = "forbid"
4239
private_bounds = "forbid"
4340
private_interfaces = "forbid"
44-
proc-macro-back-compat = "forbid"
4541
proc-macro-derive-resolution-fallback = "forbid"
4642
pub-use-of-private-extern-crate = "forbid"
4743
semicolon-in-expressions-from-macros = "forbid"
4844
soft-unstable = "forbid"
4945
uninhabited-static = "forbid"
5046
unstable-name-collisions = "forbid"
5147
unsupported-calling-conventions = "forbid"
52-
where-clauses-object-safety = "forbid"
5348
missing_docs = "deny"
5449
rust-2021-compatibility = "deny"
5550
rust-2018-idioms = "deny"

lcov2cobertura/src/demangle.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl CppDemangler {
4141
}
4242
}
4343

44-
impl<'a, 'b> Demangler<'a, 'b> for CppDemangler {
44+
impl<'a> Demangler<'a, '_> for CppDemangler {
4545
fn demangle(&mut self, ident: &str) -> io::Result<Cow<'a, str>> {
4646
self.child_in.write_all(format!("{}\n", ident).as_bytes())?;
4747
let mut line = String::new();
@@ -76,7 +76,7 @@ impl RustDemangler {
7676
}
7777
}
7878
}
79-
impl<'a, 'b> Demangler<'a, 'b> for RustDemangler {
79+
impl<'a> Demangler<'a, '_> for RustDemangler {
8080
fn demangle(&mut self, ident: &str) -> io::Result<Cow<'a, str>> {
8181
let demangled = demangle(ident).to_string();
8282
Ok(Cow::Owned(

0 commit comments

Comments
 (0)