mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 13:07:56 +00:00
Remove cargo unleash CI job (#10482)
* Remove cargo unleash CI job The CI job is currently breaking, because we released some crates. We also don't need the job currently because releases are not done. So, the job currently just annoys people and eats CPU time. This brings us to the conclusion that this job is currently not required and can be readded at a later point when we are sure that we need it. * Hopefully fix UI test * Another try * Remove `reserved_keyword` ui
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#[frame_support::pallet]
|
||||
mod pallet {
|
||||
use frame_support::pallet_prelude::{Hooks, DispatchResultWithPostInfo};
|
||||
use codec::{Decode, Encode};
|
||||
use frame_support::pallet_prelude::{DispatchResultWithPostInfo, Hooks};
|
||||
use frame_system::pallet_prelude::{BlockNumberFor, OriginFor};
|
||||
use codec::{Encode, Decode};
|
||||
|
||||
#[pallet::config]
|
||||
pub trait Config: frame_system::Config {}
|
||||
@@ -13,7 +13,7 @@ mod pallet {
|
||||
#[pallet::hooks]
|
||||
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
|
||||
|
||||
#[derive(Encode, Decode, scale_info::TypeInfo)]
|
||||
#[derive(Encode, Decode, scale_info::TypeInfo, PartialEq, Clone)]
|
||||
struct Bar;
|
||||
|
||||
#[pallet::call]
|
||||
@@ -25,5 +25,4 @@ mod pallet {
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
}
|
||||
fn main() {}
|
||||
|
||||
@@ -8,21 +8,3 @@ error[E0277]: `Bar` doesn't implement `std::fmt::Debug`
|
||||
= note: add `#[derive(Debug)]` to `Bar` or manually `impl std::fmt::Debug for Bar`
|
||||
= note: required because of the requirements on the impl of `std::fmt::Debug` for `&Bar`
|
||||
= note: required for the cast to the object type `dyn std::fmt::Debug`
|
||||
|
||||
error[E0277]: the trait bound `Bar: Clone` is not satisfied
|
||||
--> tests/pallet_ui/call_argument_invalid_bound_3.rs:22:36
|
||||
|
|
||||
22 | pub fn foo(origin: OriginFor<T>, bar: Bar) -> DispatchResultWithPostInfo {
|
||||
| ^^^ the trait `Clone` is not implemented for `Bar`
|
||||
|
|
||||
note: required by `clone`
|
||||
--> $RUST/core/src/clone.rs
|
||||
|
|
||||
| fn clone(&self) -> Self;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0369]: binary operation `==` cannot be applied to type `&Bar`
|
||||
--> tests/pallet_ui/call_argument_invalid_bound_3.rs:22:36
|
||||
|
|
||||
22 | pub fn foo(origin: OriginFor<T>, bar: Bar) -> DispatchResultWithPostInfo {
|
||||
| ^^^
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
#[frame_support::pallet]
|
||||
mod pallet {
|
||||
use frame_support::pallet_prelude::{Hooks, StorageNMap, Twox64Concat, NMapKey};
|
||||
use frame_support::{
|
||||
pallet_prelude::{Hooks, Twox64Concat},
|
||||
storage::types::{StorageNMap, Key},
|
||||
};
|
||||
use frame_system::pallet_prelude::BlockNumberFor;
|
||||
|
||||
#[pallet::config]
|
||||
@@ -20,8 +23,7 @@ mod pallet {
|
||||
struct Bar;
|
||||
|
||||
#[pallet::storage]
|
||||
type Foo<T> = StorageNMap<_, NMapKey<Twox64Concat, Bar>, u32>;
|
||||
type Foo<T> = StorageNMap<_, Key<Twox64Concat, Bar>, u32>;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
}
|
||||
fn main() {}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
error[E0277]: the trait bound `Bar: MaxEncodedLen` is not satisfied
|
||||
--> tests/pallet_ui/storage_info_unsatisfied_nmap.rs:10:12
|
||||
--> tests/pallet_ui/storage_info_unsatisfied_nmap.rs:13:12
|
||||
|
|
||||
10 | #[pallet::generate_storage_info]
|
||||
13 | #[pallet::generate_storage_info]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^ the trait `MaxEncodedLen` is not implemented for `Bar`
|
||||
|
|
||||
= note: required because of the requirements on the impl of `KeyGeneratorMaxEncodedLen` for `Key<frame_support::Twox64Concat, Bar>`
|
||||
|
||||
Reference in New Issue
Block a user