From b26947e4bef0f81507894b7ce563ebdbd2be33ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Haye=C3=9F?= Date: Fri, 26 Aug 2022 11:50:00 +0200 Subject: [PATCH] Clippy fixes --- src/ports.rs | 4 ++-- src/scheduler/dependencies.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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() } }