aboutsummaryrefslogtreecommitdiff
path: root/src/private/cast/arc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/private/cast/arc.rs')
-rw-r--r--src/private/cast/arc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/private/cast/arc.rs b/src/private/cast/arc.rs
index 7ea8b49..1fbdf8b 100644
--- a/src/private/cast/arc.rs
+++ b/src/private/cast/arc.rs
@@ -13,7 +13,7 @@ use std::any::type_name;
use std::sync::Arc;
use crate::private::cast::error::CastError;
-use crate::private::cast::{get_caster, CastFromSync};
+use crate::private::cast::{get_caster, CastFromArc};
pub trait CastArc
{
@@ -23,7 +23,7 @@ pub trait CastArc
/// A blanket implementation of `CastArc` for traits extending `CastFrom`, `Sync`, and
/// `Send`.
-impl<CastFromSelf: ?Sized + CastFromSync> CastArc for CastFromSelf
+impl<CastFromSelf: ?Sized + CastFromArc> CastArc for CastFromSelf
{
fn cast<Dest: ?Sized + 'static>(self: Arc<Self>) -> Result<Arc<Dest>, CastError>
{