remove unicode normalization and std references

This commit is contained in:
Tadeo hepperle
2024-02-14 16:12:53 +01:00
parent a0a79c4290
commit cc33870c6b
8 changed files with 23 additions and 67 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ pub struct Address<ReturnTy> {
// Manual implementation to work around https://github.com/mcarton/rust-derivative/issues/115.
impl<ReturnTy> PartialOrd for Address<ReturnTy> {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> {
Some(self.cmp(other))
}
}
+5 -5
View File
@@ -74,11 +74,11 @@ pub trait RuntimeApiPayload {
#[derive(Derivative)]
#[derivative(
Clone(bound = "ArgsData: Clone"),
Debug(bound = "ArgsData: std::fmt::Debug"),
Eq(bound = "ArgsData: std::cmp::Eq"),
Ord(bound = "ArgsData: std::cmp::Ord"),
PartialEq(bound = "ArgsData: std::cmp::PartialEq"),
PartialOrd(bound = "ArgsData: std::cmp::PartialOrd")
Debug(bound = "ArgsData: core::fmt::Debug"),
Eq(bound = "ArgsData: core::cmp::Eq"),
Ord(bound = "ArgsData: core::cmp::Ord"),
PartialEq(bound = "ArgsData: core::cmp::PartialEq"),
PartialOrd(bound = "ArgsData: core::cmp::PartialOrd")
)]
pub struct Payload<ArgsData, ReturnTy> {
trait_name: Cow<'static, str>,
+5 -5
View File
@@ -58,11 +58,11 @@ pub trait StorageAddress {
#[derive(Derivative)]
#[derivative(
Clone(bound = "StorageKey: Clone"),
Debug(bound = "StorageKey: std::fmt::Debug"),
Eq(bound = "StorageKey: std::cmp::Eq"),
Ord(bound = "StorageKey: std::cmp::Ord"),
PartialEq(bound = "StorageKey: std::cmp::PartialEq"),
PartialOrd(bound = "StorageKey: std::cmp::PartialOrd")
Debug(bound = "StorageKey: core::fmt::Debug"),
Eq(bound = "StorageKey: core::cmp::Eq"),
Ord(bound = "StorageKey: core::cmp::Ord"),
PartialEq(bound = "StorageKey: core::cmp::PartialEq"),
PartialOrd(bound = "StorageKey: core::cmp::PartialOrd")
)]
pub struct Address<StorageKey, ReturnTy, Fetchable, Defaultable, Iterable> {
pallet_name: Cow<'static, str>,
+5 -5
View File
@@ -54,11 +54,11 @@ pub struct ValidationDetails<'a> {
#[derive(Derivative)]
#[derivative(
Clone(bound = "CallData: Clone"),
Debug(bound = "CallData: std::fmt::Debug"),
Eq(bound = "CallData: std::cmp::Eq"),
Ord(bound = "CallData: std::cmp::Ord"),
PartialEq(bound = "CallData: std::cmp::PartialEq"),
PartialOrd(bound = "CallData: std::cmp::PartialOrd")
Debug(bound = "CallData: core::fmt::Debug"),
Eq(bound = "CallData: core::cmp::Eq"),
Ord(bound = "CallData: core::cmp::Ord"),
PartialEq(bound = "CallData: core::cmp::PartialEq"),
PartialOrd(bound = "CallData: core::cmp::PartialOrd")
)]
pub struct Payload<CallData> {
pallet_name: Cow<'static, str>,