Skip to content

Commit 83e3f56

Browse files
committed
Fix build without sync feature
1 parent d8ca333 commit 83e3f56

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/cell/cell_impl/rc.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ impl CellContext for EmptyCellContext {
194194
}
195195
}
196196

197-
unsafe fn make_cell(ctx: CellParts, hashes: Vec<(HashBytes, u16)>) -> Cell {
197+
unsafe fn make_cell(ctx: CellParts, hashes: Box<[(HashBytes, u16)]>) -> Cell {
198198
unsafe {
199199
match ctx.descriptor.cell_type() {
200200
CellType::PrunedBranch => {
@@ -232,7 +232,6 @@ unsafe fn make_cell(ctx: CellParts, hashes: Vec<(HashBytes, u16)>) -> Cell {
232232
hashes,
233233
descriptor: ctx.descriptor,
234234
references: ctx.references.into_inner(),
235-
without_first: false,
236235
},
237236
ctx.data,
238237
),

src/cell/usage_tree.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,10 @@ mod rc {
257257
Some(value) => value,
258258
slot @ None => {
259259
let child = self.cell.as_ref().reference_cloned(index)?;
260-
if self.mode == UsageTreeMode::OnLoad {
261-
if let Some(usage_tree) = self.usage_tree.upgrade() {
262-
usage_tree.insert(&child);
263-
}
260+
if self.mode == UsageTreeMode::OnLoad
261+
&& let Some(usage_tree) = self.usage_tree.upgrade()
262+
{
263+
usage_tree.insert(&child);
264264
}
265265

266266
slot.insert(Rc::new(UsageCell::new(

0 commit comments

Comments
 (0)