From 90465ae74a8212b612540a7e4c92ea3dd59bf986 Mon Sep 17 00:00:00 2001 From: Nick Alexander Date: Thu, 3 May 2018 16:46:49 -0700 Subject: [PATCH] Flip ValueRc to Arc in order to allow TypedValue in errors. (#677) (#678) r=rnewman @mmacedoeu did a good deal of work to show that Arc instead of Rc wasn't too difficult in #656, and @rnewman pushed the refactoring across the line in #659. However, we didn't flip the switch at that time. For #673, we'd like to include TypedValue instances in errors, and with error-chain (and failure) error types need to be 'Sync + 'Send, so we need Arc. This builds on #659 and should also finish #656. --- core/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/types.rs b/core/src/types.rs index 31b5723c..0885866b 100644 --- a/core/src/types.rs +++ b/core/src/types.rs @@ -121,7 +121,7 @@ impl Cloned for Box where T: Sized + Clone { /// This type must implement `FromRc` and `Cloned`, and a `From` implementation must exist for /// `TypedValue`. /// -pub type ValueRc = Rc; +pub type ValueRc = Arc; /// Represents one entid in the entid space. ///