From b83b1906a6df811a470fb752608d2cb8a9e51563 Mon Sep 17 00:00:00 2001 From: c r Date: Wed, 8 Dec 2021 18:48:21 -0600 Subject: [PATCH] F11 fix (#1312) Co-authored-by: noot --- vm/actor/src/builtin/miner/state.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/vm/actor/src/builtin/miner/state.rs b/vm/actor/src/builtin/miner/state.rs index 8a47bd3e3ff0..d345f260c092 100644 --- a/vm/actor/src/builtin/miner/state.rs +++ b/vm/actor/src/builtin/miner/state.rs @@ -1154,10 +1154,9 @@ impl State { make_map_with_root_and_bitwidth(&self.pre_committed_sectors, store, HAMT_BIT_WIDTH)?; for sector_no in sector_nos.iter() { if sector_no as u64 > MAX_SECTOR_NUMBER { - return Err(Box::new(actor_error!( - ErrIllegalArgument, - "sector number greater than maximum" - ))); + return Err( + actor_error!(ErrIllegalArgument, "sector number greater than maximum").into(), + ); } let info: &SectorPreCommitOnChainInfo =