Skip to content

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
ashelkovnykov committed Oct 4, 2023
2 parents 771a4fb + 5c5a238 commit 79ab07a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions rust/ares/src/noun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1105,11 +1105,13 @@ impl private::RawSlots for Noun {
fn raw_slot(&self, axis: &BitSlice<u64, Lsb0>) -> Result<Noun> {
match self.as_either_atom_cell() {
Right(cell) => cell.raw_slot(axis),
Left(_atom) => if axis.last_one() == 0 {
Ok(self)
} else {
// Axis tried to descend through atom
Err(Error::NotCell)
Left(_atom) => {
if axis.last_one() == Some(0) {
Ok(*self)
} else {
// Axis tried to descend through atom
Err(Error::NotCell)
}
}
}
}
Expand Down

0 comments on commit 79ab07a

Please sign in to comment.