chiark / gitweb /
wip errors from introducing accounts
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 1 Nov 2020 23:24:26 +0000 (23:24 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 1 Nov 2020 23:24:26 +0000 (23:24 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/cmdlistener.rs

index 36866f5997d5d0928ad45f50c3725ccc21d7a13b..3bf2790a0a951cc9277245afab341baddf7b9bd3 100644 (file)
@@ -1010,9 +1010,7 @@ mod authproofs {
 
   #[derive(Debug)]
   pub struct Authorisation<A> (PhantomData<*const A>);
-  impl<A> Clone for Authorisation<A> { fn clone(&self) -> Self {
-    Self(PhantomData)
-  } }
+  impl<A> Clone for Authorisation<A> { fn clone(&self) -> Self { *self } }
   impl<A> Copy for Authorisation<A> { }
 
   impl<T> Authorisation<T> {