fix: compilation failure without any async runtime

This commit is contained in:
Artem Starikov 2025-03-06 16:05:37 +03:00
parent 66eae4b78f
commit a0b9e301a7
No known key found for this signature in database
GPG Key ID: 7D17D34CB72CCCC2
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ use tempfile::NamedTempFile;
use crate::async_lib::{AsyncWrite, JoinHandle};
use crate::content::path;
use crate::errors::{IoErrorExt, Result};
#[cfg(any(feature = "async-std", feature = "tokio"))]
use crate::Error;
#[cfg(feature = "mmap")]
@ -425,7 +426,7 @@ fn update_state(
}
}
#[cfg(not(feature = "tokio"))]
#[cfg(feature = "async-std")]
/// Update the state.
fn update_state(current_state: &mut State, next_state: State) {
*current_state = next_state;