Fix detailed_trace module scope (#15912)

# Objective

Fixes #15615

## Solution

`$crate` is a cool keyword metavariable

## Testing

Created a test crate and used the macro

## Showcase

![image](https://github.com/user-attachments/assets/f0567224-126d-44e4-8905-26103da4ba14)
This commit is contained in:
Benjamin Brienen 2024-10-15 04:48:36 +02:00 committed by GitHub
parent 8a655e4d27
commit 63a3a987c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -412,7 +412,7 @@ pub fn error<E: Debug>(result: Result<(), E>) {
macro_rules! detailed_trace {
($($tts:tt)*) => {
if cfg!(detailed_trace) {
bevy_utils::tracing::trace!($($tts)*);
$crate::tracing::trace!($($tts)*);
}
}
}