diff --git a/fusio-object-store/src/fs.rs b/fusio-object-store/src/fs.rs index f550307..3834d24 100644 --- a/fusio-object-store/src/fs.rs +++ b/fusio-object-store/src/fs.rs @@ -1,10 +1,10 @@ -use std::{future::Future, sync::Arc}; +use std::sync::Arc; use async_stream::stream; use fusio::{ fs::{FileMeta, FileSystemTag, Fs, OpenOptions}, path::Path, - Error, MaybeSend, + Error, }; use futures_core::Stream; use futures_util::stream::StreamExt; diff --git a/fusio-opendal/src/fs.rs b/fusio-opendal/src/fs.rs index f579036..7e7ef12 100644 --- a/fusio-opendal/src/fs.rs +++ b/fusio-opendal/src/fs.rs @@ -1,9 +1,7 @@ -use std::future::Future; - use fusio::{ fs::{FileMeta, FileSystemTag, Fs, OpenOptions}, path::Path, - Error, MaybeSend, + Error, }; use futures_core::Stream; use futures_util::TryStreamExt; @@ -71,7 +69,7 @@ impl Fs for OpendalFs { .map_err(parse_opendal_error) } - async fn link(&self, from: &Path, to: &Path) -> Result<(), Error> { + async fn link(&self, _from: &Path, _to: &Path) -> Result<(), Error> { Err(Error::Unsupported { message: "opendal does not support link file".to_string(), }) diff --git a/fusio/src/fs/mod.rs b/fusio/src/fs/mod.rs index be9293c..df7cefa 100644 --- a/fusio/src/fs/mod.rs +++ b/fusio/src/fs/mod.rs @@ -57,8 +57,6 @@ pub trait Fs: MaybeSend + MaybeSync { #[cfg(test)] mod tests { - use crate::DynFs; - #[ignore] #[cfg(all( feature = "tokio-http", diff --git a/fusio/src/impls/remotes/aws/fs.rs b/fusio/src/impls/remotes/aws/fs.rs index ff16080..a80076a 100644 --- a/fusio/src/impls/remotes/aws/fs.rs +++ b/fusio/src/impls/remotes/aws/fs.rs @@ -126,14 +126,6 @@ pub(super) struct AmazonS3Inner { pub(super) client: Box, } -impl AmazonS3 { - pub fn new(client: Box, options: S3Options) -> Self { - AmazonS3 { - inner: Arc::new(AmazonS3Inner { options, client }), - } - } -} - impl Fs for AmazonS3 { type File = S3File; @@ -300,6 +292,7 @@ pub struct ListResponse { #[cfg(test)] mod tests { + #[cfg(feature = "tokio-http")] use crate::{fs::Fs, path::Path}; #[cfg(feature = "tokio-http")]