diff --git a/src/main.rs b/src/main.rs index 770c835..0b2c832 100644 --- a/src/main.rs +++ b/src/main.rs @@ -93,7 +93,7 @@ impl Config { } #[cfg(not(feature = "tokio_console"))] - +#[track_caller] fn spawn( _name: &str, future: impl Future + Send + 'static, @@ -102,6 +102,7 @@ fn spawn( } #[cfg(feature = "tokio_console")] +#[track_caller] fn spawn( name: &str, future: impl Future + Send + 'static,