Skip to content

Commit 1210175

Browse files
committed
fix: build errors with conditional flags
1 parent 4839016 commit 1210175

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

htsget-storage/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ use base64::engine::general_purpose;
2424
use base64::Engine;
2525
use cfg_if::cfg_if;
2626
use htsget_config::storage::local::LocalStorage as LocalStorageConfig;
27-
#[cfg(feature = "experimental")]
2827
use htsget_config::storage::object::ObjectType;
2928
#[cfg(feature = "s3-storage")]
3029
use htsget_config::storage::s3::S3Storage as S3StorageConfig;
@@ -138,10 +137,10 @@ impl StorageTrait for Storage {
138137

139138
impl Storage {
140139
/// Wrap an existing storage with the object type storage.
141-
pub fn from_object_type(object_type: &ObjectType, storage: Storage) -> Storage {
140+
pub fn from_object_type(_object_type: &ObjectType, storage: Storage) -> Storage {
142141
cfg_if! {
143142
if #[cfg(feature = "experimental")] {
144-
if let Some(keys) = object_type.keys() {
143+
if let Some(keys) = _object_type.keys() {
145144
Storage::new(C4GHStorage::new_box(
146145
keys.clone().into_inner(),
147146
storage.into_inner(),
@@ -150,7 +149,7 @@ impl Storage {
150149
storage
151150
}
152151
} else {
153-
Ok(storage)
152+
storage
154153
}
155154
}
156155
}

0 commit comments

Comments
 (0)