aboutsummaryrefslogtreecommitdiffstats
path: root/src/ext.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext.rs')
-rw-r--r--src/ext.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ext.rs b/src/ext.rs
index b58baaaf..4f9bc145 100644
--- a/src/ext.rs
+++ b/src/ext.rs
@@ -129,7 +129,13 @@ mod private {
impl Sealed for Ident {}
- #[derive(Copy, Clone)]
pub struct PeekFn;
pub struct IdentAny;
+
+ impl Copy for PeekFn {}
+ impl Clone for PeekFn {
+ fn clone(&self) -> Self {
+ *self
+ }
+ }
}