Skip to content

Conversation

sampathsris
Copy link

Due to an import of ::tracing::field::{display, debug, Value}, macro valueset! wasn't sanitary and would produce compile errors when identifiers debug and display were used.

This change fixes the issue and makes the macro sanitary.

Fixes: #3381

Motivation

Making sure the mentioned macro is sanitary and avoiding users from encountering unexpected compile errors.

Solution

Removed the import inside macro and used fully-qualified paths for imported items.

Due to an import of `::tracing::field::{display, debug, Value}, macro
`valueset!` wasn't sanitary and would produce compile errors when
identifiers `debug` and `display` were used.

This change fixes the issue and makes the macro sanitary.

Fixes: tokio-rs#3381
@sampathsris sampathsris requested review from a team and hawkw as code owners September 26, 2025 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants