Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 8b6da40

Browse files
author
Hendrik van Antwerpen
committed
Drop unnecessary bound
1 parent 62b4c59 commit 8b6da40

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

stack-graphs/src/cycles.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ where
130130

131131
pub trait Index<H, A>
132132
where
133-
A: Appendable + Clone,
133+
A: Appendable,
134134
{
135135
fn get<'a>(&'a self, handle: &'a H) -> &'a A;
136136
}
@@ -173,7 +173,7 @@ where
173173
path: &mut PartialPath,
174174
) -> Result<(), PathResolutionError>
175175
where
176-
A: Appendable + Clone + 'a,
176+
A: Appendable + 'a,
177177
Db: Index<H, A>,
178178
{
179179
match self {
@@ -184,7 +184,7 @@ where
184184

185185
fn start_node<'a, A, Db>(&self, db: &'a Db) -> Handle<Node>
186186
where
187-
A: Appendable + Clone + 'a,
187+
A: Appendable + 'a,
188188
Db: Index<H, A>,
189189
{
190190
match self {
@@ -195,7 +195,7 @@ where
195195

196196
fn end_node<'a, A, Db>(&self, db: &'a Db) -> Handle<Node>
197197
where
198-
A: Appendable + Clone + 'a,
198+
A: Appendable + 'a,
199199
Db: Index<H, A>,
200200
{
201201
match self {
@@ -245,7 +245,7 @@ where
245245
appendables: &mut Appendables<H>,
246246
) -> Result<EnumSet<Cyclicity>, PathResolutionError>
247247
where
248-
A: Appendable + Clone + 'a,
248+
A: Appendable + 'a,
249249
Db: Index<H, A>,
250250
{
251251
let mut cycles = EnumSet::new();

stack-graphs/src/stitching.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ impl<H: Clone> ForwardPartialPathStitcher<H> {
733733
cycle_detector: AppendingCycleDetector<H>,
734734
) -> usize
735735
where
736-
A: Appendable + Clone + 'a,
736+
A: Appendable + 'a,
737737
Db: Candidates<H> + crate::cycles::Index<H, A>,
738738
{
739739
self.candidates.clear();
@@ -808,7 +808,7 @@ impl<H: Clone> ForwardPartialPathStitcher<H> {
808808
partials: &mut PartialPaths,
809809
db: &mut Db,
810810
) where
811-
A: Appendable + Clone + 'a,
811+
A: Appendable + 'a,
812812
Db: Candidates<H> + crate::cycles::Index<H, A>,
813813
{
814814
copious_debugging!("==> Start phase {}", self.phase_number);

0 commit comments

Comments
 (0)