Skip to content

Commit

Permalink
Implement Clone for Box<dyn DynClone>
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Feb 28, 2023
1 parent f508080 commit a0143e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/macros.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use crate::DynClone;

/// Implement the standard library `Clone` for a trait object that has
/// `DynClone` as a supertrait.
///
Expand Down Expand Up @@ -108,3 +110,5 @@ macro_rules! __internal_clone_trait_object {
}
};
}

clone_trait_object!(DynClone);

0 comments on commit a0143e8

Please sign in to comment.