fix: profile_tokio broken due to incompatible types
This commit is contained in:
committed by
Thomas Colliers
parent
877a32ab09
commit
0451716e1e
@@ -17,6 +17,6 @@ pub fn new<
|
|||||||
#[cfg(feature = "profile_tokio")]
|
#[cfg(feature = "profile_tokio")]
|
||||||
let result = tokio::task::Builder::new()
|
let result = tokio::task::Builder::new()
|
||||||
.name(name_fn().as_ref())
|
.name(name_fn().as_ref())
|
||||||
.spawn(async_future);
|
.spawn(async_future).map_err(Into::into);
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user