From 25fadde59bcd861c2df0a98e06b14d4b2eb96f7c Mon Sep 17 00:00:00 2001 From: kinire98 Date: Mon, 12 Feb 2024 17:55:07 +0100 Subject: [PATCH] Removed link_to from default features, since it was used in another module without a conditional compilation flag --- Cargo.toml | 2 +- src/content/read.rs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index dc1489a..4c2481f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -56,7 +56,7 @@ name = "benchmarks" harness = false [features] -default = ["async-std", "mmap", "link_to"] +default = ["async-std", "mmap"] mmap = ["memmap2", "libc"] async-std = ["dep:async-std", "futures"] link_to = [] diff --git a/src/content/read.rs b/src/content/read.rs index 66023af..39efbdb 100644 --- a/src/content/read.rs +++ b/src/content/read.rs @@ -6,10 +6,8 @@ use std::pin::Pin; #[cfg(any(feature = "async-std", feature = "tokio"))] use std::task::{Context, Poll}; -#[cfg(feature = "async-std")] -use futures::io::AsyncReadExt; -#[cfg(feature = "tokio")] -use tokio::io::AsyncReadExt; +#[cfg(any(feature = "async-std", feature = "tokio"))] +use crate::async_lib::AsyncReadExt; use ssri::{Algorithm, Integrity, IntegrityChecker};