Skip to content

Commit

Permalink
Fix Amt iter mut guard (#772)
Browse files Browse the repository at this point in the history
* Fix changed deref on iter mut amt

* Remove test skip
  • Loading branch information
austinabell authored Oct 21, 2020
1 parent 655eac2 commit 34759a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion tests/conformance_tests/tests/conformance_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ lazy_static! {
// Extracted miner faults
Regex::new(r"fil_1_storageminer-DeclareFaults-Ok-3").unwrap(),
Regex::new(r"fil_1_storageminer-DeclareFaults-Ok-7").unwrap(),
Regex::new(r"fil_1_storageminer-SubmitWindowedPoSt").unwrap(),

// Other fault
Regex::new(r"fail-insufficient-funds-for-transfer-in-inner-send--genesis").unwrap(),
Expand Down
4 changes: 2 additions & 2 deletions vm/actor/src/builtin/miner/expiration_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use cid::Cid;
use clock::ChainEpoch;
use encoding::tuple::*;
use fil_types::{SectorNumber, SectorSize};
use ipld_amt::{Amt, Error as AmtError};
use ipld_amt::{Amt, Error as AmtError, ValueMut};
use ipld_blockstore::BlockStore;
use num_bigint::bigint_ser;
use num_traits::{Signed, Zero};
Expand Down Expand Up @@ -660,7 +660,7 @@ impl<'db, BS: BlockStore> ExpirationQueue<'db, BS> {
&mut self,
mut f: impl FnMut(
ChainEpoch,
&mut ExpirationSet,
&mut ValueMut<'_, ExpirationSet>,
) -> Result</* keep going */ bool, Box<dyn StdError>>,
) -> Result<(), Box<dyn StdError>> {
let mut epochs_emptied = Vec::<ChainEpoch>::new();
Expand Down

0 comments on commit 34759a8

Please sign in to comment.