[sq] rename derivation_node
This commit is contained in:
parent
f796788ed5
commit
8e7e652a76
|
@ -457,7 +457,7 @@ impl CapNodeCapability {
|
|||
(1usize << self.0.read(CapNodeCap::Radix)) * core::mem::size_of::<CapTableEntry>();
|
||||
let slice = unsafe { core::slice::from_raw_parts_mut(ptr as *mut CapTableEntry, size) };
|
||||
slice[slot].capability = cap.as_u128();
|
||||
slice[slot].derivation_node = DerivationTreeNode::empty()
|
||||
slice[slot].derivation = DerivationTreeNode::empty()
|
||||
.set_revocable(true)
|
||||
.set_first_badged(true);
|
||||
}
|
||||
|
@ -562,7 +562,7 @@ pub enum CapError {
|
|||
#[derive(Clone)]
|
||||
pub struct CapTableEntry {
|
||||
capability: u128,
|
||||
derivation_node: DerivationTreeNode,
|
||||
derivation: DerivationTreeNode,
|
||||
}
|
||||
|
||||
impl fmt::Debug for CapTableEntry {
|
||||
|
@ -582,7 +582,7 @@ impl CapTableEntry {
|
|||
fn empty() -> CapTableEntry {
|
||||
CapTableEntry {
|
||||
capability: 0,
|
||||
derivation_node: DerivationTreeNode::empty(),
|
||||
derivation: DerivationTreeNode::empty(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -681,7 +681,7 @@ mod tests {
|
|||
fn first_capability_derivation_has_no_prev_link() {
|
||||
let entry = CapTableEntry::empty();
|
||||
assert!(entry
|
||||
.derivation_node
|
||||
.derivation
|
||||
.try_get_prev()
|
||||
.contains_err(&DerivationTreeError::InvalidPrev));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue