diff options
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -32,10 +32,10 @@ use serde::Serialize; use sha2::{Digest, Sha256}; use std::fs::File; -use std::fs::{read_link, symlink_metadata}; use std::io::{BufReader, Read}; use std::os::linux::fs::MetadataExt; use std::path::{Path, PathBuf}; +use tokio::fs::{read_link, symlink_metadata}; const BUF_SIZE: usize = 1024 * 1024; @@ -69,9 +69,9 @@ impl ManifestEntry { /// /// The structure can be serialized using serde. pub async fn new(path: &Path) -> std::io::Result<Self> { - let m = symlink_metadata(path)?; + let m = symlink_metadata(path).await?; let target = if m.file_type().is_symlink() { - Some(read_link(path)?) + Some(read_link(path).await?) } else { None }; |