Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ethe committed Nov 19, 2024
1 parent a86969d commit 0758619
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
4 changes: 2 additions & 2 deletions fusio-object-store/src/fs.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
6 changes: 2 additions & 4 deletions fusio-opendal/src/fs.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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(),
})
Expand Down
2 changes: 0 additions & 2 deletions fusio/src/fs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ pub trait Fs: MaybeSend + MaybeSync {

#[cfg(test)]
mod tests {
use crate::DynFs;

#[ignore]
#[cfg(all(
feature = "tokio-http",
Expand Down
9 changes: 1 addition & 8 deletions fusio/src/impls/remotes/aws/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,6 @@ pub(super) struct AmazonS3Inner {
pub(super) client: Box<dyn DynHttpClient>,
}

impl AmazonS3 {
pub fn new(client: Box<dyn DynHttpClient>, options: S3Options) -> Self {
AmazonS3 {
inner: Arc::new(AmazonS3Inner { options, client }),
}
}
}

impl Fs for AmazonS3 {
type File = S3File;

Expand Down Expand Up @@ -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")]
Expand Down

0 comments on commit 0758619

Please sign in to comment.