Skip to content

Commit

Permalink
unused unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
enricozb committed Apr 4, 2024
1 parent 4b7e24a commit 29e6d13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/run/interact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ impl<'a, M: Mode> Net<'a, M> {
pub fn op_num(&mut self, a: Port, b: Port) {
trace!(self.tracer, a, b);
let a = a.consume_node();
let op = unsafe { Op::from(a.lab) };
let op = Op::from(a.lab);
let a1 = a.p1.load_target();
if a1.tag() == Num {
self.rwts.oper += 1;
Expand Down
2 changes: 1 addition & 1 deletion src/run/port.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl Port {
/// ports.
#[inline(always)]
pub fn op(&self) -> Op {
unsafe { self.lab().into() }
self.lab().into()
}

/// Accesses the numeric value of this port; this is valid for [`Num`] ports.
Expand Down

0 comments on commit 29e6d13

Please sign in to comment.