From 59f195609e3804386e8121175a7ac28fa246449f Mon Sep 17 00:00:00 2001 From: timofey Date: Sun, 3 Sep 2023 21:21:52 +0000 Subject: [PATCH] `PointsVisitor for SingularResolution` to `rcore` --- src/rcore/singular.rs | 6 ++++++ src/rstd/singular.rs | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/rcore/singular.rs b/src/rcore/singular.rs index 4c6af2c..22447a9 100644 --- a/src/rcore/singular.rs +++ b/src/rcore/singular.rs @@ -54,3 +54,9 @@ impl Display for SingularError { } impl Error for SingularError {} + +impl<'a, Ctx: Context<'a>> PointsVisitor<'a, Ctx> for Vec>> { + fn visit>(&mut self, point: &Point<'a, Ctx, A>) { + self.push(Arc::new(point.clone()) as _); + } +} diff --git a/src/rstd/singular.rs b/src/rstd/singular.rs index 998122e..aa90ef9 100644 --- a/src/rstd/singular.rs +++ b/src/rstd/singular.rs @@ -59,9 +59,3 @@ impl<'a, Ctx: Context<'a>> Resolver<'a, Ctx> for SingularResolver<'a, Ctx> { .unwrap_or_else(Ctx::pure) } } - -impl<'a, Ctx: Context<'a>> PointsVisitor<'a, Ctx> for Vec>> { - fn visit>(&mut self, point: &Point<'a, Ctx, A>) { - self.push(Arc::new(point.clone()) as _); - } -}