diff --git a/src/ports.rs b/src/ports.rs index 08d38e27..c34f3c48 100644 --- a/src/ports.rs +++ b/src/ports.rs @@ -352,7 +352,7 @@ impl Port { let mut mut_downstream_cell = { cfg_if! { if #[cfg(feature = "no-unsafe")] { - (&downstream.upstream_binding).borrow_mut() + (downstream.upstream_binding).borrow_mut() } else { unsafe { (&downstream.upstream_binding).get().as_mut().unwrap() } } @@ -447,7 +447,7 @@ struct PortCell { impl PortCell { fn check_cycle(&self, upstream_id: &PortId, downstream_id: &PortId) -> Result<(), AssemblyError> { - if (&*self.downstreams.borrow()).contains_key(upstream_id) { + if (*self.downstreams.borrow()).contains_key(upstream_id) { Err(AssemblyError(CyclicDependency(*upstream_id, *downstream_id))) } else { Ok(()) diff --git a/src/scheduler/dependencies.rs b/src/scheduler/dependencies.rs index a978e7b3..cc105326 100644 --- a/src/scheduler/dependencies.rs +++ b/src/scheduler/dependencies.rs @@ -537,7 +537,7 @@ impl<'a> IntoIterator for &'a Level { type IntoIter = <&'a LevelImpl as IntoIterator>::IntoIter; fn into_iter(self) -> Self::IntoIter { - (&self.0).iter() + (self.0).iter() } }