Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
auguwu committed Jan 16, 2024
1 parent e88075f commit 62f9a30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/remi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ serde = [
"remi-gridfs/serde",
]
log = ["remi-fs/log", "remi-s3/log", "remi-azure/log", "remi-gridfs/log"]
all = ["gridfs", "s3", "fs"]
all = ["gridfs", "s3", "fs", "azure"]
s3 = ["dep:remi-s3"]
fs = ["dep:remi-fs"]

Expand Down
12 changes: 6 additions & 6 deletions crates/remi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ use remi::{async_trait, Blob, Bytes, ListBlobsRequest, StorageService as _, Uplo
use std::{io::Result, path::Path};

/// Union-like enum for [`StorageService`].
#[derive(Debug, Clone)]
#[derive(Clone)]
#[allow(deprecated)]
#[non_exhaustive]
pub enum StorageService {
#[cfg(feature = "fs")]
Filesystem(remi_fs::FilesystemStorageService),
Filesystem(remi_fs::StorageService),

#[cfg(feature = "gridfs")]
GridFS(remi_gridfs::GridfsStorageService),
GridFS(remi_gridfs::StorageService),

#[cfg(feature = "azure")]
Azure(remi_azure::StorageService),
Expand Down Expand Up @@ -213,13 +213,13 @@ impl remi::StorageService for StorageService {
#[cfg_attr(feature = "serde", serde(untagged))]
pub enum Config {
#[cfg(feature = "fs")]
Filesystem(remi_fs::FilesystemStorageConfig),
Filesystem(remi_fs::Config),

#[cfg(feature = "gridfs")]
GridFS(remi_gridfs::GridfsStorageConfig),
GridFS(remi_gridfs::StorageConfig),

#[cfg(feature = "azure")]
Azure(remi_azure::Config),
Azure(remi_azure::StorageConfig),

#[cfg(feature = "s3")]
S3(remi_s3::S3StorageConfig),
Expand Down

0 comments on commit 62f9a30

Please sign in to comment.