File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ use base64::engine::general_purpose;
2424use base64:: Engine ;
2525use cfg_if:: cfg_if;
2626use htsget_config:: storage:: local:: LocalStorage as LocalStorageConfig ;
27- #[ cfg( feature = "experimental" ) ]
2827use htsget_config:: storage:: object:: ObjectType ;
2928#[ cfg( feature = "s3-storage" ) ]
3029use htsget_config:: storage:: s3:: S3Storage as S3StorageConfig ;
@@ -138,10 +137,10 @@ impl StorageTrait for Storage {
138137
139138impl 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 }
You can’t perform that action at this time.
0 commit comments