File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -141,12 +141,10 @@ pub struct MemStorage {
141
141
sigs : Arc < RwLock < HashMap < String , SigStore > > > ,
142
142
}
143
143
144
- #[ cfg( not( all( target_arch = "wasm32" , target_os = "unknown" ) ) ) ]
145
- #[ cfg( feature = "branchwater" ) ]
144
+ #[ cfg( all( feature = "branchwater" , not( target_arch = "wasm32" ) ) ) ]
146
145
pub mod rocksdb;
147
146
148
- #[ cfg( not( all( target_arch = "wasm32" , target_os = "unknown" ) ) ) ]
149
- #[ cfg( feature = "branchwater" ) ]
147
+ #[ cfg( all( feature = "branchwater" , not( target_arch = "wasm32" ) ) ) ]
150
148
pub use self :: rocksdb:: RocksDBStorage ;
151
149
152
150
pub type Metadata < ' a > = BTreeMap < & ' a OsStr , & ' a piz:: read:: FileMetadata < ' a > > ;
@@ -169,7 +167,7 @@ impl InnerStorage {
169
167
let path = x. split ( "://" ) . last ( ) . expect ( "not a valid path" ) ;
170
168
171
169
cfg_if ! {
172
- if #[ cfg( feature = "branchwater" ) ] {
170
+ if #[ cfg( all ( feature = "branchwater" , not ( target_arch = "wasm32" ) ) ) ] {
173
171
InnerStorage :: new( RocksDBStorage :: from_path( path) )
174
172
} else {
175
173
return Err ( StorageError :: MissingFeature ( "branchwater" . into( ) , path. into( ) ) . into( ) )
You can’t perform that action at this time.
0 commit comments