Skip to content

Commit

Permalink
persistence: fix feature gates in memory struct initializers
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Aug 2, 2024
1 parent 3aaafcb commit 02d831c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/persistence/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ impl MemStash {
pub fn in_memory() -> Self {
Self {
dirty: false,
#[cfg(feature = "fs")]
filename: None,
schemata: empty!(),
ifaces: empty!(),
Expand Down Expand Up @@ -478,6 +479,7 @@ impl MemState {
pub fn in_memory() -> Self {
Self {
dirty: false,
#[cfg(feature = "fs")]
filename: None,
witnesses: empty!(),
contracts: empty!(),
Expand Down Expand Up @@ -1190,6 +1192,7 @@ impl MemIndex {
pub fn in_memory() -> Self {
Self {
dirty: false,
#[cfg(feature = "fs")]
filename: None,
op_bundle_index: empty!(),
bundle_contract_index: empty!(),
Expand Down

0 comments on commit 02d831c

Please sign in to comment.