Skip to content

Commit

Permalink
Merge pull request #23 from dtolnay/boxdyndynclone
Browse files Browse the repository at this point in the history
Implement Clone for Box<dyn DynClone>
  • Loading branch information
dtolnay authored Feb 28, 2023
2 parents f508080 + a0143e8 commit 0a163ee
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 0a163ee

Please sign in to comment.