mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
try again
This commit is contained in:
@@ -746,7 +746,7 @@ pub(crate) fn inc_and_check<T: PrimInt + AddAssign + std::fmt::Debug>(
|
|||||||
macro_rules! spawn_named_task {
|
macro_rules! spawn_named_task {
|
||||||
($name:expr, $future:expr) => {{
|
($name:expr, $future:expr) => {{
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
#[allow(unused_variables)]
|
#[allow(unused_variables, unexpected_cfgs)]
|
||||||
pub fn __spawn_named_task<Fut>(
|
pub fn __spawn_named_task<Fut>(
|
||||||
name: &str,
|
name: &str,
|
||||||
future: Fut,
|
future: Fut,
|
||||||
@@ -755,7 +755,7 @@ macro_rules! spawn_named_task {
|
|||||||
Fut: ::std::future::Future + Send + 'static,
|
Fut: ::std::future::Future + Send + 'static,
|
||||||
Fut::Output: Send + 'static,
|
Fut::Output: Send + 'static,
|
||||||
{
|
{
|
||||||
#[allow(unexpected_cfgs)]
|
|
||||||
#[cfg(tokio_unstable)]
|
#[cfg(tokio_unstable)]
|
||||||
{
|
{
|
||||||
::tokio::task::Builder::new()
|
::tokio::task::Builder::new()
|
||||||
@@ -763,7 +763,6 @@ macro_rules! spawn_named_task {
|
|||||||
.spawn(future)
|
.spawn(future)
|
||||||
.expect("Failed to spawn task")
|
.expect("Failed to spawn task")
|
||||||
}
|
}
|
||||||
#[allow(unexpected_cfgs)]
|
|
||||||
#[cfg(not(tokio_unstable))]
|
#[cfg(not(tokio_unstable))]
|
||||||
{
|
{
|
||||||
::tokio::task::spawn(future)
|
::tokio::task::spawn(future)
|
||||||
@@ -811,7 +810,7 @@ macro_rules! spawn_named_task {
|
|||||||
macro_rules! spawn_named_blocking_task {
|
macro_rules! spawn_named_blocking_task {
|
||||||
($name:expr, $future:expr) => {{
|
($name:expr, $future:expr) => {{
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
#[allow(unused_variables)]
|
#[allow(unused_variables, unexpected_cfgs)]
|
||||||
pub fn __spawn_named_blocking_task<Fut, ReturnType>(
|
pub fn __spawn_named_blocking_task<Fut, ReturnType>(
|
||||||
name: &str,
|
name: &str,
|
||||||
future: Fut,
|
future: Fut,
|
||||||
@@ -820,7 +819,6 @@ macro_rules! spawn_named_blocking_task {
|
|||||||
Fut: FnOnce() -> ReturnType + Send + 'static,
|
Fut: FnOnce() -> ReturnType + Send + 'static,
|
||||||
ReturnType: Send + 'static,
|
ReturnType: Send + 'static,
|
||||||
{
|
{
|
||||||
#[allow(unexpected_cfgs)]
|
|
||||||
#[cfg(tokio_unstable)]
|
#[cfg(tokio_unstable)]
|
||||||
{
|
{
|
||||||
::tokio::task::Builder::new()
|
::tokio::task::Builder::new()
|
||||||
@@ -828,7 +826,6 @@ macro_rules! spawn_named_blocking_task {
|
|||||||
.spawn_blocking(future)
|
.spawn_blocking(future)
|
||||||
.expect("Failed to spawn task")
|
.expect("Failed to spawn task")
|
||||||
}
|
}
|
||||||
#[allow(unexpected_cfgs)]
|
|
||||||
#[cfg(not(tokio_unstable))]
|
#[cfg(not(tokio_unstable))]
|
||||||
{
|
{
|
||||||
::tokio::task::spawn_blocking(future)
|
::tokio::task::spawn_blocking(future)
|
||||||
|
|||||||
Reference in New Issue
Block a user