mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-01-31 07:42:15 +00:00
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:
parent
623dbd0d74
commit
4c984595e5
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user