Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix Rust 1.85.0 lints and errors #3240

Merged
merged 1 commit into from
Mar 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions tracing-journald/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -517,11 +517,17 @@ pub struct PriorityMappings {
impl PriorityMappings {
/// Returns the default priority mappings:
///
/// - [`tracing::Level::ERROR`]: [`Priority::Error`] (3)
/// - [`tracing::Level::WARN`]: [`Priority::Warning`] (4)
/// - [`tracing::Level::INFO`]: [`Priority::Notice`] (5)
/// - [`tracing::Level::DEBUG`]: [`Priority::Informational`] (6)
/// - [`tracing::Level::TRACE`]: [`Priority::Debug`] (7)
/// - [`tracing::Level::ERROR`][]: [`Priority::Error`] (3)
/// - [`tracing::Level::WARN`][]: [`Priority::Warning`] (4)
/// - [`tracing::Level::INFO`][]: [`Priority::Notice`] (5)
/// - [`tracing::Level::DEBUG`][]: [`Priority::Informational`] (6)
/// - [`tracing::Level::TRACE`][]: [`Priority::Debug`] (7)
///
/// [`tracing::Level::ERROR`]: tracing_core::Level::ERROR
/// [`tracing::Level::WARN`]: tracing_core::Level::WARN
/// [`tracing::Level::INFO`]: tracing_core::Level::INFO
/// [`tracing::Level::DEBUG`]: tracing_core::Level::DEBUG
/// [`tracing::Level::TRACE`]: tracing_core::Level::TRACE
pub fn new() -> PriorityMappings {
Self {
error: Priority::Error,
Expand Down
4 changes: 2 additions & 2 deletions tracing-log/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@
//! [`tracing`]: https://crates.io/crates/tracing
//! [`log`]: https://crates.io/crates/log
//! [`env_logger` crate]: https://crates.io/crates/env-logger
//! [`tracing::Collector`]: tracing::Collect
//! [`tracing::Collector`]: tracing_core::Collect
//! [`tracing::Event`]: tracing_core::Event
//! [`Collect`]: tracing::Collect
//! [`Collect`]: tracing_core::Collect
//! [flags]: https://docs.rs/tracing/latest/tracing/#crate-feature-flags
#![doc(
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png",
Expand Down
1 change: 1 addition & 0 deletions tracing-subscriber/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
//! [`Collect`]: tracing_core::collect::Collect
//! [collector]: tracing_core::collect::Collect
//! [`EnvFilter`]: filter::EnvFilter
//! [`tracing`]: https://crates.io/crates/tracing
//! [`tracing-log`]: https://crates.io/crates/tracing-log
//! [`smallvec`]: https://crates.io/crates/smallvec
//! [`env_logger` crate]: https://crates.io/crates/env_logger
Expand Down
2 changes: 0 additions & 2 deletions tracing/src/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ where
///
/// Note: Libraries should *NOT* call `set_global_default()`! That will cause conflicts when
/// executables try to set them later.
///
/// [span]: super::span
#[cfg(feature = "alloc")]
#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
pub fn set_global_default<C>(collector: C) -> Result<(), SetGlobalDefaultError>
Expand Down