diff --git a/crates/sel4-capdl-initializer/core/src/lib.rs b/crates/sel4-capdl-initializer/core/src/lib.rs index 6d29e2b59..dfc3f0566 100644 --- a/crates/sel4-capdl-initializer/core/src/lib.rs +++ b/crates/sel4-capdl-initializer/core/src/lib.rs @@ -657,7 +657,7 @@ impl<'a, N: ObjectName, D: Content, M: GetEmbeddedFrame, B: BorrowMut<[PerObject Some(cap) => { let orig = self.orig_cap::(cap.object); let badge = cap.badge; - let rights = cap.rights.into(); + let rights = (&cap.rights).into(); if badge == 0 && rights == CapRights::all() { orig } else {