summaryrefslogtreecommitdiff
path: root/rust/src/basicblock.rs
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2023-01-05 17:29:14 -0500
committerKyleMiles <krm504@nyu.edu>2023-01-06 16:29:58 -0500
commita154e45cce79b0c2264c1e1cd37a3d1bf5bc6154 (patch)
tree11f436b720edfdf37819e9e83e7131d220687074 /rust/src/basicblock.rs
parent52edc39a7081fd6662e14fbcd473adabbbc36c7a (diff)
Rust API: Lots and lots of clippy changes
Diffstat (limited to 'rust/src/basicblock.rs')
-rw-r--r--rust/src/basicblock.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/src/basicblock.rs b/rust/src/basicblock.rs
index c59e8d22..cdd7186e 100644
--- a/rust/src/basicblock.rs
+++ b/rust/src/basicblock.rs
@@ -42,11 +42,11 @@ impl<'a, C: 'a + BlockContext> Edge<'a, C> {
}
pub fn source(&self) -> &BasicBlock<C> {
- &*self.source
+ &self.source
}
pub fn target(&self) -> &BasicBlock<C> {
- &*self.target
+ &self.target
}
}
@@ -100,8 +100,8 @@ unsafe impl<'a, C: 'a + BlockContext> CoreArrayWrapper<'a> for Edge<'a, C> {
Edge {
branch: raw.type_,
back_edge: raw.backEdge,
- source: source,
- target: target,
+ source,
+ target,
}
}
}