mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 17:28:00 +00:00
Prepare UI tests for rust 1.55 (#9637)
* Prepare UI tests for rust 1.54 * Delete wrong_page.stderr * CI: run with a staging CI image * Revert "CI: run with a staging CI image" This reverts commit 66f5b00d14b50fd9d8fbf773f7e884f380697591. * CI: debug, again * LOG_TARGET is only used in std * Remove unnecessary unsafe * Fixes * Use correct rustc locally * FMT * Compile with benchmarking * Review feedback * Some ui tests * I know... * Fix wasm tests Co-authored-by: Denis P <denis.pisarev@parity.io> Co-authored-by: thiolliere <gui.thiolliere@gmail.com>
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
use crate::{storage::StorageDecodeLength, traits::Get};
|
||||
use codec::{Decode, Encode, MaxEncodedLen};
|
||||
use sp_std::{
|
||||
borrow::Borrow, collections::btree_map::BTreeMap, convert::TryFrom, fmt, marker::PhantomData,
|
||||
borrow::Borrow, collections::btree_map::BTreeMap, convert::TryFrom, marker::PhantomData,
|
||||
ops::Deref,
|
||||
};
|
||||
|
||||
@@ -173,12 +173,12 @@ where
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
impl<K, V, S> fmt::Debug for BoundedBTreeMap<K, V, S>
|
||||
impl<K, V, S> std::fmt::Debug for BoundedBTreeMap<K, V, S>
|
||||
where
|
||||
BTreeMap<K, V>: fmt::Debug,
|
||||
BTreeMap<K, V>: std::fmt::Debug,
|
||||
S: Get<u32>,
|
||||
{
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.debug_tuple("BoundedBTreeMap").field(&self.0).field(&Self::bound()).finish()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
use crate::{storage::StorageDecodeLength, traits::Get};
|
||||
use codec::{Decode, Encode, MaxEncodedLen};
|
||||
use sp_std::{
|
||||
borrow::Borrow, collections::btree_set::BTreeSet, convert::TryFrom, fmt, marker::PhantomData,
|
||||
borrow::Borrow, collections::btree_set::BTreeSet, convert::TryFrom, marker::PhantomData,
|
||||
ops::Deref,
|
||||
};
|
||||
|
||||
@@ -157,12 +157,12 @@ where
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
impl<T, S> fmt::Debug for BoundedBTreeSet<T, S>
|
||||
impl<T, S> std::fmt::Debug for BoundedBTreeSet<T, S>
|
||||
where
|
||||
BTreeSet<T>: fmt::Debug,
|
||||
BTreeSet<T>: std::fmt::Debug,
|
||||
S: Get<u32>,
|
||||
{
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.debug_tuple("BoundedBTreeSet").field(&self.0).field(&Self::bound()).finish()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ use core::{
|
||||
ops::{Deref, Index, IndexMut},
|
||||
slice::SliceIndex,
|
||||
};
|
||||
use sp_std::{convert::TryFrom, fmt, marker::PhantomData, prelude::*};
|
||||
use sp_std::{convert::TryFrom, marker::PhantomData, prelude::*};
|
||||
|
||||
/// A bounded vector.
|
||||
///
|
||||
@@ -201,12 +201,12 @@ impl<T, S> Default for BoundedVec<T, S> {
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
impl<T, S> fmt::Debug for BoundedVec<T, S>
|
||||
impl<T, S> std::fmt::Debug for BoundedVec<T, S>
|
||||
where
|
||||
T: fmt::Debug,
|
||||
T: std::fmt::Debug,
|
||||
S: Get<u32>,
|
||||
{
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.debug_tuple("BoundedVec").field(&self.0).field(&Self::bound()).finish()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ use core::{
|
||||
ops::{Deref, Index, IndexMut},
|
||||
slice::SliceIndex,
|
||||
};
|
||||
use sp_std::{convert::TryFrom, fmt, marker::PhantomData, prelude::*};
|
||||
use sp_std::{convert::TryFrom, marker::PhantomData, prelude::*};
|
||||
|
||||
/// A weakly bounded vector.
|
||||
///
|
||||
@@ -171,12 +171,12 @@ impl<T, S> Default for WeakBoundedVec<T, S> {
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
impl<T, S> fmt::Debug for WeakBoundedVec<T, S>
|
||||
impl<T, S> std::fmt::Debug for WeakBoundedVec<T, S>
|
||||
where
|
||||
T: fmt::Debug,
|
||||
T: std::fmt::Debug,
|
||||
S: Get<u32>,
|
||||
{
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.debug_tuple("WeakBoundedVec").field(&self.0).field(&Self::bound()).finish()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user