Add full paths for some manually-implemented derives

This further reduces the difference between pairing's manual and derived
implementations.
This commit is contained in:
Jack Grigg 2018-07-02 06:54:59 +01:00
parent 623dbd0d74
commit 4c984595e5
No known key found for this signature in database
GPG Key ID: 1B8D649257DB0829
1 changed files with 4 additions and 4 deletions

View File

@ -795,21 +795,21 @@ fn prime_field_impl(
let top_limb_index = limbs - 1; let top_limb_index = limbs - 1;
quote!{ quote!{
impl Copy for #name { } impl ::std::marker::Copy for #name { }
impl Clone for #name { impl ::std::clone::Clone for #name {
fn clone(&self) -> #name { fn clone(&self) -> #name {
*self *self
} }
} }
impl PartialEq for #name { impl ::std::cmp::PartialEq for #name {
fn eq(&self, other: &#name) -> bool { fn eq(&self, other: &#name) -> bool {
self.0 == other.0 self.0 == other.0
} }
} }
impl Eq for #name { } impl ::std::cmp::Eq for #name { }
impl ::std::fmt::Debug for #name impl ::std::fmt::Debug for #name
{ {