Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cleanup
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
  • Loading branch information
ggwpez committed May 8, 2023
commit d15d4fcfd8ebe0d3624bbdf0bffd4e4a633be675
2 changes: 1 addition & 1 deletion frame/support/test/pallet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub mod pallet {
use frame_support::pallet_prelude::*;

#[pallet::pallet]
pub struct Pallet<T>(PhantomData<T>);
pub struct Pallet<T>(_);

#[pallet::config]
pub trait Config: frame_system::Config {}
Expand Down
4 changes: 2 additions & 2 deletions frame/support/test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//! Minimal `frame_system::Config`-super trait pallet.
//! Minimal pallet without `frame_system::Config`-super trait.

// Make sure we fail compilation on warnings
#![warn(missing_docs)]
Expand All @@ -32,7 +32,7 @@ pub mod pallet {
use frame_support::pallet_prelude::*;

#[pallet::pallet]
pub struct Pallet<T>(PhantomData<T>);
pub struct Pallet<T>(_);

/// The configuration trait
#[pallet::config]
Expand Down
8 changes: 4 additions & 4 deletions frame/support/test/tests/construct_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ mod module1 {
use frame_support_test as frame_system;

#[pallet::pallet]
pub struct Pallet<T, I = ()>(PhantomData<(T, I)>);
pub struct Pallet<T, I = ()>(_);

#[pallet::config]
pub trait Config<I: 'static = ()>: frame_system::Config {
Expand Down Expand Up @@ -81,7 +81,7 @@ mod module2 {
use frame_support_test as frame_system;

#[pallet::pallet]
pub struct Pallet<T>(PhantomData<T>);
pub struct Pallet<T>(_);

#[pallet::config]
pub trait Config: frame_system::Config {
Expand Down Expand Up @@ -128,7 +128,7 @@ mod nested {
use frame_support_test as frame_system;

#[pallet::pallet]
pub struct Pallet<T>(PhantomData<T>);
pub struct Pallet<T>(_);

#[pallet::config]
pub trait Config: frame_system::Config {
Expand Down Expand Up @@ -183,7 +183,7 @@ pub mod module3 {
use frame_support_test as frame_system;

#[pallet::pallet]
pub struct Pallet<T>(PhantomData<T>);
pub struct Pallet<T>(_);

#[pallet::config]
pub trait Config: frame_system::Config {
Expand Down
2 changes: 1 addition & 1 deletion frame/support/test/tests/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ mod module1 {
use frame_support_test as frame_system;

#[pallet::pallet]
pub struct Pallet<T, I = ()>(PhantomData<(T, I)>);
pub struct Pallet<T, I = ()>(_);

#[pallet::config]
pub trait Config<I: 'static = ()>: frame_system::Config {
Expand Down
4 changes: 2 additions & 2 deletions frame/support/test/tests/origin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ mod nested {
use frame_support_test as frame_system;

#[pallet::pallet]
pub struct Pallet<T>(PhantomData<T>);
pub struct Pallet<T>(_);

#[pallet::config]
pub trait Config: frame_system::Config {
Expand Down Expand Up @@ -77,7 +77,7 @@ pub mod module {
use frame_support_test as frame_system;

#[pallet::pallet]
pub struct Pallet<T>(PhantomData<T>);
pub struct Pallet<T>(_);

#[pallet::config]
pub trait Config: frame_system::Config {
Expand Down
2 changes: 1 addition & 1 deletion frame/support/test/tests/storage_layers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub mod pallet {
use frame_system::pallet_prelude::*;

#[pallet::pallet]
pub struct Pallet<T>(PhantomData<T>);
pub struct Pallet<T>(_);

#[pallet::config]
pub trait Config: frame_system::Config {}
Expand Down
2 changes: 1 addition & 1 deletion frame/support/test/tests/storage_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub mod pallet {

#[pallet::pallet]
#[pallet::generate_store(pub (super) trait Store)]
pub struct Pallet<T>(PhantomData<T>);
pub struct Pallet<T>(_);

#[pallet::config]
pub trait Config: frame_system::Config {}
Expand Down