mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-07-31 12:31:22 +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:
@@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user