mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-10-02 15:24:47 +00:00
chore: fixes for clippy changes in Rust 1.74 (#2814)
With the release of Rust 1.74, there are some new or modified clippy lints that need adaption in the code. The main change was the removal of the `private_in_public`. https://rust-lang.github.io/rfcs/2145-type-privacy.html Then two more changes were required, in one case to adhere a lint and the other to allow it. When talking about what an "application" needs to do when setting up `tracing-error`, it makes sense to include `fn main()` in the doctest, even though the lint recommends against it. ; Conflicts: ; examples/examples/map-traced-error.rs
This commit is contained in:
parent
0e4a4bef5e
commit
571c5305bc
@ -153,7 +153,8 @@
|
|||||||
overflowing_literals,
|
overflowing_literals,
|
||||||
path_statements,
|
path_statements,
|
||||||
patterns_in_fns_without_body,
|
patterns_in_fns_without_body,
|
||||||
private_in_public,
|
private_interfaces,
|
||||||
|
private_bounds,
|
||||||
unconditional_recursion,
|
unconditional_recursion,
|
||||||
unused,
|
unused,
|
||||||
unused_allocation,
|
unused_allocation,
|
||||||
|
@ -70,7 +70,8 @@
|
|||||||
overflowing_literals,
|
overflowing_literals,
|
||||||
path_statements,
|
path_statements,
|
||||||
patterns_in_fns_without_body,
|
patterns_in_fns_without_body,
|
||||||
private_in_public,
|
private_interfaces,
|
||||||
|
private_bounds,
|
||||||
unconditional_recursion,
|
unconditional_recursion,
|
||||||
unused_allocation,
|
unused_allocation,
|
||||||
unused_comparisons,
|
unused_comparisons,
|
||||||
|
@ -135,7 +135,8 @@
|
|||||||
overflowing_literals,
|
overflowing_literals,
|
||||||
path_statements,
|
path_statements,
|
||||||
patterns_in_fns_without_body,
|
patterns_in_fns_without_body,
|
||||||
private_in_public,
|
private_interfaces,
|
||||||
|
private_bounds,
|
||||||
unconditional_recursion,
|
unconditional_recursion,
|
||||||
unused,
|
unused,
|
||||||
unused_allocation,
|
unused_allocation,
|
||||||
|
@ -183,6 +183,7 @@
|
|||||||
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png",
|
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png",
|
||||||
issue_tracker_base_url = "https://github.com/tokio-rs/tracing/issues/"
|
issue_tracker_base_url = "https://github.com/tokio-rs/tracing/issues/"
|
||||||
)]
|
)]
|
||||||
|
#![allow(clippy::needless_doctest_main)]
|
||||||
#![warn(
|
#![warn(
|
||||||
missing_debug_implementations,
|
missing_debug_implementations,
|
||||||
missing_docs,
|
missing_docs,
|
||||||
@ -196,7 +197,8 @@
|
|||||||
overflowing_literals,
|
overflowing_literals,
|
||||||
path_statements,
|
path_statements,
|
||||||
patterns_in_fns_without_body,
|
patterns_in_fns_without_body,
|
||||||
private_in_public,
|
private_interfaces,
|
||||||
|
private_bounds,
|
||||||
unconditional_recursion,
|
unconditional_recursion,
|
||||||
unused,
|
unused,
|
||||||
unused_allocation,
|
unused_allocation,
|
||||||
|
@ -124,7 +124,8 @@
|
|||||||
overflowing_literals,
|
overflowing_literals,
|
||||||
path_statements,
|
path_statements,
|
||||||
patterns_in_fns_without_body,
|
patterns_in_fns_without_body,
|
||||||
private_in_public,
|
private_interfaces,
|
||||||
|
private_bounds,
|
||||||
unconditional_recursion,
|
unconditional_recursion,
|
||||||
unused,
|
unused,
|
||||||
unused_allocation,
|
unused_allocation,
|
||||||
|
@ -87,7 +87,8 @@
|
|||||||
overflowing_literals,
|
overflowing_literals,
|
||||||
path_statements,
|
path_statements,
|
||||||
patterns_in_fns_without_body,
|
patterns_in_fns_without_body,
|
||||||
private_in_public,
|
private_interfaces,
|
||||||
|
private_bounds,
|
||||||
unconditional_recursion,
|
unconditional_recursion,
|
||||||
unused,
|
unused,
|
||||||
unused_allocation,
|
unused_allocation,
|
||||||
|
@ -112,7 +112,8 @@
|
|||||||
overflowing_literals,
|
overflowing_literals,
|
||||||
path_statements,
|
path_statements,
|
||||||
patterns_in_fns_without_body,
|
patterns_in_fns_without_body,
|
||||||
private_in_public,
|
private_interfaces,
|
||||||
|
private_bounds,
|
||||||
unconditional_recursion,
|
unconditional_recursion,
|
||||||
unused,
|
unused,
|
||||||
unused_allocation,
|
unused_allocation,
|
||||||
|
@ -174,7 +174,8 @@
|
|||||||
overflowing_literals,
|
overflowing_literals,
|
||||||
path_statements,
|
path_statements,
|
||||||
patterns_in_fns_without_body,
|
patterns_in_fns_without_body,
|
||||||
private_in_public,
|
private_interfaces,
|
||||||
|
private_bounds,
|
||||||
unconditional_recursion,
|
unconditional_recursion,
|
||||||
unused,
|
unused,
|
||||||
unused_allocation,
|
unused_allocation,
|
||||||
|
@ -186,7 +186,8 @@
|
|||||||
overflowing_literals,
|
overflowing_literals,
|
||||||
path_statements,
|
path_statements,
|
||||||
patterns_in_fns_without_body,
|
patterns_in_fns_without_body,
|
||||||
private_in_public,
|
private_interfaces,
|
||||||
|
private_bounds,
|
||||||
unconditional_recursion,
|
unconditional_recursion,
|
||||||
unused,
|
unused,
|
||||||
unused_allocation,
|
unused_allocation,
|
||||||
|
@ -16,7 +16,8 @@
|
|||||||
overflowing_literals,
|
overflowing_literals,
|
||||||
path_statements,
|
path_statements,
|
||||||
patterns_in_fns_without_body,
|
patterns_in_fns_without_body,
|
||||||
private_in_public,
|
private_interfaces,
|
||||||
|
private_bounds,
|
||||||
unconditional_recursion,
|
unconditional_recursion,
|
||||||
unused,
|
unused,
|
||||||
unused_allocation,
|
unused_allocation,
|
||||||
|
@ -929,7 +929,8 @@
|
|||||||
overflowing_literals,
|
overflowing_literals,
|
||||||
path_statements,
|
path_statements,
|
||||||
patterns_in_fns_without_body,
|
patterns_in_fns_without_body,
|
||||||
private_in_public,
|
private_interfaces,
|
||||||
|
private_bounds,
|
||||||
unconditional_recursion,
|
unconditional_recursion,
|
||||||
unused,
|
unused,
|
||||||
unused_allocation,
|
unused_allocation,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user