Skip to content

Commit b4c1415

Browse files
hgzimmermanjstarry
authored andcommitted
Manually implement Clone for ComponentLink (#749)
1 parent 91d8a89 commit b4c1415

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/html/mod.rs

+8
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,14 @@ impl<COMP: Component> fmt::Debug for ComponentLink<COMP> {
458458
}
459459
}
460460

461+
impl<COMP: Component> Clone for ComponentLink<COMP> {
462+
fn clone(&self) -> Self {
463+
ComponentLink {
464+
scope: self.scope.clone(),
465+
}
466+
}
467+
}
468+
461469
/// A bridging type for checking `href` attribute value.
462470
#[derive(Debug)]
463471
pub struct Href {

0 commit comments

Comments
 (0)