Local development node compile & run ok #68
base_checks.yaml
on: push
compile-and-check
18m 15s
Annotations
9 errors and 74 warnings
not all trait items implemented, missing: `try_successful_origin`:
/home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pallet-collective-40.1.0/src/lib.rs#L1539
error[E0046]: not all trait items implemented, missing: `try_successful_origin`
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pallet-collective-40.1.0/src/lib.rs:1539:1
|
1539 | / impl<
1540 | | O: OriginTrait + From<RawOrigin<AccountId, I>>,
1541 | | AccountId,
1542 | | I,
... |
1547 | | where
1548 | | for<'a> &'a O::PalletsOrigin: TryInto<&'a RawOrigin<AccountId, I>>,
| |_______________________________________________________________________^ missing `try_successful_origin` in implementation
|
= help: implement the missing item: `fn try_successful_origin(_: &T) -> Result<O, ()> { todo!() }`
|
not all trait items implemented, missing: `try_successful_origin`:
/home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pallet-collective-40.1.0/src/lib.rs#L1518
error[E0046]: not all trait items implemented, missing: `try_successful_origin`
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pallet-collective-40.1.0/src/lib.rs:1518:1
|
1518 | / impl<O: OriginTrait + From<RawOrigin<AccountId, I>>, AccountId, I, const N: u32, const D: u32>
1519 | | EnsureOrigin<O> for EnsureProportionAtLeast<AccountId, I, N, D>
1520 | | where
1521 | | for<'a> &'a O::PalletsOrigin: TryInto<&'a RawOrigin<AccountId, I>>,
| |_______________________________________________________________________^ missing `try_successful_origin` in implementation
|
= help: implement the missing item: `fn try_successful_origin() -> Result<O, ()> { todo!() }`
|
not all trait items implemented, missing: `try_successful_origin`:
/home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pallet-collective-40.1.0/src/lib.rs#L1494
error[E0046]: not all trait items implemented, missing: `try_successful_origin`
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pallet-collective-40.1.0/src/lib.rs:1494:1
|
1494 | / impl<
1495 | | O: OriginTrait + From<RawOrigin<AccountId, I>>,
1496 | | AccountId,
1497 | | I,
... |
1502 | | where
1503 | | for<'a> &'a O::PalletsOrigin: TryInto<&'a RawOrigin<AccountId, I>>,
| |_______________________________________________________________________^ missing `try_successful_origin` in implementation
|
= help: implement the missing item: `fn try_successful_origin(_: &T) -> Result<O, ()> { todo!() }`
|
not all trait items implemented, missing: `try_successful_origin`:
/home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pallet-collective-40.1.0/src/lib.rs#L1473
error[E0046]: not all trait items implemented, missing: `try_successful_origin`
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pallet-collective-40.1.0/src/lib.rs:1473:1
|
1473 | / impl<O: OriginTrait + From<RawOrigin<AccountId, I>>, AccountId, I, const N: u32, const D: u32>
1474 | | EnsureOrigin<O> for EnsureProportionMoreThan<AccountId, I, N, D>
1475 | | where
1476 | | for<'a> &'a O::PalletsOrigin: TryInto<&'a RawOrigin<AccountId, I>>,
| |_______________________________________________________________________^ missing `try_successful_origin` in implementation
|
= help: implement the missing item: `fn try_successful_origin() -> Result<O, ()> { todo!() }`
|
not all trait items implemented, missing: `try_successful_origin`:
/home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pallet-collective-40.1.0/src/lib.rs#L1455
error[E0046]: not all trait items implemented, missing: `try_successful_origin`
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pallet-collective-40.1.0/src/lib.rs:1455:1
|
1455 | / impl<O: OriginTrait + From<RawOrigin<AccountId, I>>, AccountId, I, const N: u32, T>
1456 | | EnsureOriginWithArg<O, T> for EnsureMembers<AccountId, I, N>
1457 | | where
1458 | | for<'a> &'a O::PalletsOrigin: TryInto<&'a RawOrigin<AccountId, I>>,
| |_______________________________________________________________________^ missing `try_successful_origin` in implementation
|
= help: implement the missing item: `fn try_successful_origin(_: &T) -> Result<O, ()> { todo!() }`
|
not all trait items implemented, missing: `try_successful_origin`:
/home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pallet-collective-40.1.0/src/lib.rs#L1434
error[E0046]: not all trait items implemented, missing: `try_successful_origin`
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pallet-collective-40.1.0/src/lib.rs:1434:1
|
1434 | / impl<O: OriginTrait + From<RawOrigin<AccountId, I>>, AccountId, I, const N: u32> EnsureOrigin<O>
1435 | | for EnsureMembers<AccountId, I, N>
1436 | | where
1437 | | for<'a> &'a O::PalletsOrigin: TryInto<&'a RawOrigin<AccountId, I>>,
| |_______________________________________________________________________^ missing `try_successful_origin` in implementation
|
= help: implement the missing item: `fn try_successful_origin() -> Result<O, ()> { todo!() }`
|
not all trait items implemented, missing: `try_successful_origin`:
/home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pallet-collective-40.1.0/src/lib.rs#L1418
error[E0046]: not all trait items implemented, missing: `try_successful_origin`
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pallet-collective-40.1.0/src/lib.rs:1418:1
|
1418 | / impl<O: OriginTrait + From<RawOrigin<AccountId, I>>, I, AccountId: Decode + Clone, T>
1419 | | EnsureOriginWithArg<O, T> for EnsureMember<AccountId, I>
1420 | | where
1421 | | for<'a> &'a O::PalletsOrigin: TryInto<&'a RawOrigin<AccountId, I>>,
| |_______________________________________________________________________^ missing `try_successful_origin` in implementation
|
= help: implement the missing item: `fn try_successful_origin(_: &T) -> Result<O, ()> { todo!() }`
|
not all trait items implemented, missing: `try_successful_origin`:
/home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pallet-collective-40.1.0/src/lib.rs#L1394
error[E0046]: not all trait items implemented, missing: `try_successful_origin`
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/pallet-collective-40.1.0/src/lib.rs:1394:1
|
1394 | / impl<O: OriginTrait + From<RawOrigin<AccountId, I>>, I, AccountId: Decode + Clone> EnsureOrigin<O>
1395 | | for EnsureMember<AccountId, I>
1396 | | where
1397 | | for<'a> &'a O::PalletsOrigin: TryInto<&'a RawOrigin<AccountId, I>>,
| |_______________________________________________________________________^ missing `try_successful_origin` in implementation
|
= help: implement the missing item: `fn try_successful_origin() -> Result<O, ()> { todo!() }`
|
compile-and-check
Process completed with exit code 101.
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
frame/rws/src/lib.rs#L419
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> frame/rws/src/lib.rs:419:29
|
419 | pub fn start_auction(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
frame/rws/src/lib.rs#L419
warning: useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> frame/rws/src/lib.rs:419:29
|
419 | pub fn start_auction(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
frame/rws/src/lib.rs#L391
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> frame/rws/src/lib.rs:391:32
|
391 | pub fn set_subscription(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
frame/rws/src/lib.rs#L391
warning: useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> frame/rws/src/lib.rs:391:32
|
391 | pub fn set_subscription(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
frame/rws/src/lib.rs#L372
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> frame/rws/src/lib.rs:372:26
|
372 | pub fn set_oracle(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
frame/rws/src/lib.rs#L372
warning: useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> frame/rws/src/lib.rs:372:26
|
372 | pub fn set_oracle(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
frame/rws/src/lib.rs#L350
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> frame/rws/src/lib.rs:350:27
|
350 | pub fn set_devices(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
frame/rws/src/lib.rs#L350
warning: useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> frame/rws/src/lib.rs:350:27
|
350 | pub fn set_devices(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
frame/rws/src/lib.rs#L307
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> frame/rws/src/lib.rs:307:19
|
307 | pub fn bid(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
frame/rws/src/lib.rs#L307
warning: useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> frame/rws/src/lib.rs:307:19
|
307 | pub fn bid(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
frame/rws/src/lib.rs#L275
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> frame/rws/src/lib.rs:275:20
|
275 | pub fn call(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
this let-binding has unit value:
frame/rws/src/lib.rs#L418
warning: this let-binding has unit value
--> frame/rws/src/lib.rs:418:26
|
418 | #[pallet::weight(100_000)]
| ^^^^^^^ help: omit the `let` binding: `100_000;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
|
this let-binding has unit value:
frame/rws/src/lib.rs#L390
warning: this let-binding has unit value
--> frame/rws/src/lib.rs:390:26
|
390 | #[pallet::weight(100_000)]
| ^^^^^^^ help: omit the `let` binding: `100_000;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
|
this let-binding has unit value:
frame/rws/src/lib.rs#L371
warning: this let-binding has unit value
--> frame/rws/src/lib.rs:371:26
|
371 | #[pallet::weight(100_000)]
| ^^^^^^^ help: omit the `let` binding: `100_000;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
|
this let-binding has unit value:
frame/rws/src/lib.rs#L349
warning: this let-binding has unit value
--> frame/rws/src/lib.rs:349:26
|
349 | #[pallet::weight(100_000)]
| ^^^^^^^ help: omit the `let` binding: `100_000;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
|
this let-binding has unit value:
frame/rws/src/lib.rs#L306
warning: this let-binding has unit value
--> frame/rws/src/lib.rs:306:26
|
306 | #[pallet::weight(100_000)]
| ^^^^^^^ help: omit the `let` binding: `100_000;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
|
this let-binding has unit value:
frame/rws/src/lib.rs#L419
warning: this let-binding has unit value
--> frame/rws/src/lib.rs:419:16
|
419 | pub fn start_auction(
| ^^^^^^^^^^^^^ help: omit the `let` binding: `start_auction;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
|
this let-binding has unit value:
frame/rws/src/lib.rs#L372
warning: this let-binding has unit value
--> frame/rws/src/lib.rs:372:16
|
372 | pub fn set_oracle(
| ^^^^^^^^^^ help: omit the `let` binding: `set_oracle;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
|
this let-binding has unit value:
frame/rws/src/lib.rs#L350
warning: this let-binding has unit value
--> frame/rws/src/lib.rs:350:16
|
350 | pub fn set_devices(
| ^^^^^^^^^^^ help: omit the `let` binding: `set_devices;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
|
this let-binding has unit value:
frame/rws/src/lib.rs#L307
warning: this
10000
let-binding has unit value
--> frame/rws/src/lib.rs:307:16
|
307 | pub fn bid(
| ^^^ help: omit the `let` binding: `bid;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
|
this expression creates a reference which is immediately dereferenced by the compiler:
frame/rws/src/lib.rs#L471
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> frame/rws/src/lib.rs:471:60
|
471 | T::AuctionCurrency::slash_reserved(&subscription_id, auction.best_price);
| ^^^^^^^^^^^^^^^^ help: change this to: `subscription_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
|
redundant pattern matching, consider using `is_ok()`:
frame/rws/src/lib.rs#L437
warning: redundant pattern matching, consider using `is_ok()`
--> frame/rws/src/lib.rs:437:20
|
437 | if let Ok(_) = <AuctionQueue<T>>::mutate(|queue| queue.try_push(index.clone())) {
| -------^^^^^------------------------------------------------------------------- help: try: `if <AuctionQueue<T>>::mutate(|queue| queue.try_push(index.clone())).is_ok()`
|
= note: this will change drop order of the result, as well as all temporaries
= note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
= note: `#[warn(clippy::redundant_pattern_matching)]` on by default
|
this let-binding has unit value:
frame/rws/src/lib.rs#L423
warning: this let-binding has unit value
--> frame/rws/src/lib.rs:423:13
|
423 | let _ = ensure_root(origin)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `ensure_root(origin)?;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
= note: `#[warn(clippy::let_unit_value)]` on by default
|
using `clone` on type `<<T as Config>::AuctionCurrency as Currency<<T as Config>::AccountId>>::Balance` which implements the `Copy` trait:
frame/rws/src/lib.rs#L334
warning: using `clone` on type `<<T as Config>::AuctionCurrency as Currency<<T as Config>::AccountId>>::Balance` which implements the `Copy` trait
--> frame/rws/src/lib.rs:334:38
|
334 | auction.best_price = amount.clone();
| ^^^^^^^^^^^^^^ help: try removing the `clone` call: `amount`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `<<T as Config>::AuctionCurrency as Currency<<T as Config>::AccountId>>::Balance` which implements the `Copy` trait:
frame/rws/src/lib.rs#L332
warning: using `clone` on type `<<T as Config>::AuctionCurrency as Currency<<T as Config>::AccountId>>::Balance` which implements the `Copy` trait
--> frame/rws/src/lib.rs:332:54
|
332 | T::AuctionCurrency::reserve(&sender, amount.clone())?;
| ^^^^^^^^^^^^^^ help: try removing the `clone` call: `amount`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
using `clone` on type `<<T as Config>::AuctionCurrency as Currency<<T as Config>::AccountId>>::Balance` which implements the `Copy` trait:
frame/rws/src/lib.rs#L328
warning: using `clone` on type `<<T as Config>::AuctionCurrency as Currency<<T as Config>::AccountId>>::Balance` which implements the `Copy` trait
--> frame/rws/src/lib.rs:328:38
|
328 | auction.best_price = amount.clone();
| ^^^^^^^^^^^^^^ help: try removing the `clone` call: `amount`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
|
this expression creates a reference which is immediately dereferenced by the compiler:
frame/rws/src/lib.rs#L326
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> frame/rws/src/lib.rs:326:47
|
326 | T::AuctionCurrency::unreserve(&winner, auction.best_price);
| ^^^^^^^ help: change this to: `winner`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
|
using `clone` on type `<<T as Config>::AuctionCurrency as Currency<<T as Config>::AccountId>>::Balance` which implements the `Copy` trait:
frame/rws/src/lib.rs#L325
warning: using `clone` on type `<<T as Config>::AuctionCurrency as Currency<<T as Config>::AccountId>>::Balance` which implements the `Copy` trait
--> frame/rws/src/lib.rs:325:54
|
325 | T::AuctionCurrency::reserve(&sender, amount.clone())?;
| ^^^^^^^^^^^^^^ help: try removing the `clone` call: `amount`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: `#[warn(clippy::clone_on_copy)]` on by default
|
use of deprecated constant `pallet::warnings::ImplicitCallIndex_4::_w`:
It is deprecated to use implicit call indices.
Please instead ensure that all calls have a `pallet::call_index` attribute or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/12891>
<https://github.com/paritytech/substrate/pull/11381>:
frame/rws/src/lib.rs#L391
warning: use of deprecated constant `pallet::warnings::ImplicitCallIndex_4::_w`:
It is deprecated to use implicit call indices.
Please instead ensure that all calls have a `pallet::call_index` attribute or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/12891>
<https://github.com/paritytech/substrate/pull/11381>
--> frame/rws/src/lib.rs:391:16
|
391 | pub fn set_subscription(
| ^^^^^^^^^^^^^^^^
|
use of deprecated constant `pallet::warnings::ImplicitCallIndex_3::_w`:
It is deprecated to use implicit call indices.
Please instead ensure that all calls have a `pallet::call_index` attribute or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/12891>
<https://github.com/paritytech/substrate/pull/11381>:
frame/rws/src/lib.rs#L372
warning: use of deprecated constant `pallet::warnings::ImplicitCallIndex_3::_w`:
It is deprecated to use implicit call indices.
Please instead ensure that all calls have a `pallet::call_index` attribute or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/12891>
<https://github.com/paritytech/substrate/pull/11381>
--> frame/rws/src/lib.rs:372:16
|
372 | pub fn set_oracle(
| ^^^^^^^^^^
|
use of deprecated constant `pallet::warnings::ImplicitCallIndex_2::_w`:
It is deprecated to use implicit call indices.
Please instead ensure that all calls have a `pallet::call_index` attribute or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/12891>
<https://github.com/paritytech/substrate/pull/11381>:
frame/rws/src/lib.rs#L350
warning: use of deprecated constant `pallet::warnings::ImplicitCallIndex_2::_w`:
It is deprecated to use implicit call indices.
Please instead ensure that all calls have a `pallet::call_index` attribute or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/12891>
<https://github.com/paritytech/substrate/pull/11381>
--> frame/rws/src/lib.rs:350:16
|
350 | pub fn set_devices(
| ^^^^^^^^^^^
|
use of deprecated constant `pallet::warnings::ImplicitCallIndex_1::_w`:
It is deprecated to use implicit call indices.
Please instead ensure that all calls have a `pallet::call_index` attribute or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/12891>
<https://github.com/paritytech/substrate/pull/11381>:
frame/rws/src/lib.rs#L307
warning: use of deprecated constant `pallet::warnings::ImplicitCallIndex_1::_w`:
It is deprecated to use implicit call indices.
Please instead ensure that all calls have a `pallet::call_index` attribute or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/12891>
<https://github.com/paritytech/substrate/pull/11381>
--> frame/rws/src/lib.rs:307:16
|
307 | pub fn bid(
| ^^^
|
use of deprecated constant `pallet::warnings::ImplicitCallIndex_0::_w`:
It is deprecated to use implicit call indices.
Please instead ensure that all calls have a `pallet::call_index` attribute or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/12891>
<https://github.com/paritytech/substrate/pull/11381>:
frame/rws/src/lib.rs#L275
warning: use of deprecated constant `pallet::warnings::ImplicitCallIndex_0::_w`:
It is deprecated to use implicit call indices.
Please instead ensure that all calls have a `pallet::call_index` attribute or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/12891>
<https://github.com/paritytech/substrate/pull/11381>
--> frame/rws/src/lib.rs:275:16
|
275 | pub fn call(
| ^^^^
|
= note: `#[warn(deprecated)]` on by default
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
frame/digital-twin/src/lib.rs#L84
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> frame/digital-twin/src/lib.rs:84:26
|
84 | pub fn set_source(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
frame/digital-twin/src/lib.rs#L84
warning: useless conversion to the same type: `frame_support::sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> frame/digital-twin/src/lib.rs:84:26
|
84 | pub fn set_source(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
frame/digital-twin/src/lib.rs#L73
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> frame/digital-twin/src/lib.rs:73:22
|
73 | pub fn create(origin: OriginFor<T>) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
frame/digital-twin/src/lib.rs#L73
warning: useless conversion to the same type: `frame_support::sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> frame/digital-twin/src/lib.rs:73:22
|
73 | pub fn create(origin: OriginFor<T>) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
|
this let-binding has unit value:
frame/digital-twin/src/lib.rs#L83
warning: this let-binding has unit value
--> frame/digital-twin/src/lib.rs:83:26
|
83 | #[pallet::weight(50_000)]
| ^^^^^^ help: omit the `let` binding: `50_000;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
|
this let-binding has unit value:
frame/digital-twin/src/lib.rs#L72
warning: this let-binding has unit value
--> frame/digital-twin/src/lib.rs:72:26
|
72 | #[pallet::weight(50_000)]
| ^^^^^^ help: omit the `let` binding: `50_000;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
|
this let-binding has unit value:
frame/digital-twin/src/lib.rs#L84
warning: this let-binding has unit value
--> frame/digital-twin/src/lib.rs:84:16
|
84 | pub fn set_source(
| ^^^^^^^^^^ help: omit the `let` binding: `set_source;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
|
this let-binding has unit value:
frame/digital-twin/src/lib.rs#L73
warning: this let-binding has unit value
--> frame/digital-twin/src/lib.rs:73:16
|
73 | pub fn create(origin: OriginFor<T>) -> DispatchResultWithPostInfo {
| ^^^^^^ help: omit the `let` binding: `create;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
= note: `#[warn(clippy::let_unit_value)]` on by default
|
useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
frame/liability/src/lib.rs#L147
warning: useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> frame/liability/src/lib.rs:147:24
|
147 | pub fn finalize(origin: OriginFor<T>, report: ReportFor<T>) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
frame/liability/src/lib.rs#L119
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> frame/liability/src/lib.rs:119:22
|
119 | pub fn create(origin: OriginFor<T>, agreement: T::Agreement) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
frame/liability/src/lib.rs#L119
warning: useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> frame/liability/src/lib.rs:119:22
|
119 | pub fn create(origin: OriginFor<T>, agreement: T::Agreement) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
|
this let-binding has unit value:
frame/liability/src/lib.rs#L145
warning: this let-binding has unit value
--> frame/liability/src/lib.rs:145:26
|
145 | #[pallet::weight(200_000)]
| ^^^^^^^ help: omit the `let` binding: `200_000;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
|
this let-binding has unit value:
f
10000
rame/liability/src/lib.rs#L117
warning: this let-binding has unit value
--> frame/liability/src/lib.rs:117:26
|
117 | #[pallet::weight(200_000)]
| ^^^^^^^ help: omit the `let` binding: `200_000;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
= note: `#[warn(clippy::let_unit_value)]` on by default
|
binary comparison to literal `Option::None`:
frame/liability/src/lib.rs#L156
warning: binary comparison to literal `Option::None`
--> frame/liability/src/lib.rs:156:17
|
156 | <ReportOf<T>>::get(index) == None,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `Option::is_none()` instead: `<ReportOf<T>>::get(index).is_none()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_to_none
= note: `#[warn(clippy::partialeq_to_none)]` on by default
|
use of deprecated constant `pallet::warnings::ConstantWeight_1::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/13798>:
frame/digital-twin/src/lib.rs#L83
warning: use of deprecated constant `pallet::warnings::ConstantWeight_1::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/13798>
--> frame/digital-twin/src/lib.rs:83:26
|
83 | #[pallet::weight(50_000)]
| ^^^^^^
|
use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/13798>:
frame/digital-twin/src/lib.rs#L72
warning: use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/13798>
--> frame/digital-twin/src/lib.rs:72:26
|
72 | #[pallet::weight(50_000)]
| ^^^^^^
|
use of deprecated constant `pallet::warnings::ImplicitCallIndex_1::_w`:
It is deprecated to use implicit call indices.
Please instead ensure that all calls have a `pallet::call_index` attribute or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/12891>
<https://github.com/paritytech/substrate/pull/11381>:
frame/digital-twin/src/lib.rs#L84
warning: use of deprecated constant `pallet::warnings::ImplicitCallIndex_1::_w`:
It is deprecated to use implicit call indices.
Please instead ensure that all calls have a `pallet::call_index` attribute or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/12891>
<https://github.com/paritytech/substrate/pull/11381>
--> frame/digital-twin/src/lib.rs:84:16
|
84 | pub fn set_source(
| ^^^^^^^^^^
|
use of deprecated constant `pallet::warnings::ImplicitCallIndex_0::_w`:
It is deprecated to use implicit call indices.
Please instead ensure that all calls have a `pallet::call_index` attribute or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/12891>
<https://github.com/paritytech/substrate/pull/11381>:
frame/digital-twin/src/lib.rs#L73
warning: use of deprecated constant `pallet::warnings::ImplicitCallIndex_0::_w`:
It is deprecated to use implicit call indices.
Please instead ensure that all calls have a `pallet::call_index` attribute or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/12891>
<https://github.com/paritytech/substrate/pull/11381>
--> frame/digital-twin/src/lib.rs:73:16
|
73 | pub fn create(origin: OriginFor<T>) -> DispatchResultWithPostInfo {
| ^^^^^^
|
= note: `#[warn(deprecated)]` on by default
|
this match could be written as a `let` statement:
frame/lighthouse/src/lib.rs#L215
warning: this match could be written as a `let` statement
--> frame/lighthouse/src/lib.rs:215:9
|
215 | / match InherentError::try_from(&INHERENT_IDENTIFIER, error)? {
216 | | o => Some(Err(sp_inherents::Error::Application(Box::from(o)))),
217 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_single_binding
= note: `#[warn(clippy::match_single_binding)]` on by default
help: consider using a `let` statement
|
215 ~ let o = InherentError::try_from(&INHERENT_IDENTIFIER, error)?;
216 + Some(Err(sp_inherents::Error::Application(Box::from(o))))
|
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
frame/lighthouse/src/lib.rs#L100
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> frame/lighthouse/src/lib.rs:100:19
|
100 | pub fn set(origin: OriginFor<T>, lighthouse: T::AccountId) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
frame/lighthouse/src/lib.rs#L100
warning: useless conversion to the same type: `sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> frame/lighthouse/src/lib.rs:100:19
|
100 | pub fn set(origin: OriginFor<T>, lighthouse: T::AccountId) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
|
use of deprecated constant `pallet::warnings::ConstantWeight_1::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/13798>:
frame/liability/src/lib.rs#L145
warning: use of deprecated constant `pallet::warnings::ConstantWeight_1::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/13798>
--> frame/liability/src/lib.rs:145:26
|
145 | #[pallet::weight(200_000)]
| ^^^^^^^
|
use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/13798>:
frame/liability/src/lib.rs#L117
warning: use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/13798>
--> frame/liability/src/lib.rs:117:26
|
117 | #[pallet::weight(200_000)]
| ^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
|
this `else { if .. }` block can be collapsed:
frame/liability/src/signed.rs#L76
warning: this `else { if .. }` block can be collapsed
--> frame/liability/src/signed.rs:76:16
|
76 | } else {
| ________________^
77 | | if C::unreserve(&self.promisee, self.economics.price) == self.economics.price {
78 | | Ok(())
79 | | } else {
... |
82 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if
= note: `#[warn(clippy::collapsible_else_if)]` on by default
help: collapse nested if block
|
76 ~ } else if C::unreserve(&self.promisee, self.economics.price) == self.economics.price {
77 + Ok(())
78 + } else {
79 + Err("reserved less than expected")?
80 + }
|
|
use of deprecated type alias `sp_runtime::RuntimeString`: Use String or Cow<'static, str> instead:
frame/lighthouse/src/lib.rs#L159
warning: use of deprecated type alias `sp_runtime::RuntimeString`: Use String or Cow<'static, str> instead
--> frame/lighthouse/src/lib.rs:159:23
|
159 | Other(sp_runtime::RuntimeString),
| ^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
|
redundant field names in struct initialization:
frame/lighthouse/src/lib.rs#L128
warning: redundant field names in struct initialization
--> frame/lighthouse/src/lib.rs:128:17
|
128 | lighthouse: lighthouse,
| ^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `lighthouse`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
= note: `#[warn(clippy::redundant_field_names)]` on by default
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
frame/datalog/src/lib.rs#L131
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> frame/datalog/src/lib.rs:131:21
|
131 | pub fn erase(origin: OriginFor<T>) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
frame/datalog/src/lib.rs#L131
warning: useless conversion to the same type: `frame_support::sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> frame/datalog/src/lib.rs:131:21
|
131 | pub fn erase(origin: OriginFor<T>) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
frame/datalog/src/lib.rs#L108
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> frame/datalog/src/lib.rs:108:22
|
108 | pub fn record(origin: OriginFor<T>, record: T::Record) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
frame/datalog/src/lib.rs#L108
warning: useless conversion to the same type: `frame_support::sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> frame/datalog/src/lib.rs:108:22
|
108 | pub fn record(origin: OriginFor<T>, record: T::Record) -> DispatchResultWithPostInfo {
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
|
the borrowed expression implements the required traits:
frame/datalog/src/lib.rs#L152
warning: the borrowed expression implements the required traits
--> frame/datalog/src/lib.rs:152:50
|
152 | let mut idx = DatalogIndex::<T>::get(&account);
| ^^^^^^^^ help: change this to: `account`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
|
useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`:
frame/launch/src/lib.rs#L60
warning: useless conversion to the same type: `frame_support::dispatch::PostDispatchInfo`
--> frame/launch/src/lib.rs:60:22
|
60 | pub fn launch(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
|
useless conversion to the same type: `frame_support::sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`:
frame/launch/src/lib.rs#L60
warning: useless conversion to the same type: `frame_support::sp_runtime::DispatchErrorWithPostInfo<frame_support::dispatch::PostDispatchInfo>`
--> frame/launch/src/lib.rs:60:22
|
60 | pub fn launch(
| ^ help: consider removing
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
|
this let-binding has unit value:
frame/launch/src/lib.rs#L58
warning: this let-binding has unit value
--> frame/launch/src/lib.rs:58:26
|
58 | #[pallet::weight(500_000)]
| ^^^^^^^ help: omit the `let` binding: `500_000;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
= note: `#[warn(clippy::let_unit_value)]` on by default
|
use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/13798>:
frame/launch/src/lib.rs#L58
warning: use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/13798>
--> frame/launch/src/lib.rs:58:26
|
58 | #[pallet::weight(500_000)]
| ^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
|
large size difference between variants:
frame/xcm-info/src/lib.rs#L72
warning: large size difference between variants
--> frame/xcm-info/src/lib.rs:72:15
|
72 | #[pallet::call]
| -^^^
| |
| ________________the entire enum is at least 656 bytes
| | _______________|
| ||
73 | || impl<T: Config> Pallet<T> {
74 | || #[pallet::call_index(0)]
75 | || #[pallet::weight(10_000)]
76 | || pub fn set_relay_network(origin: OriginFor<T>, network_id: NetworkId) -> DispatchResult {
| ||________________________________- the second-largest variant contains at least 48 bytes
... |
86 | | #[pallet::weight(10_000)]
87 | | pub fn set_asset_link(
| |______________________________- the largest variant contains at least 656 bytes
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
help: consider boxing the large fields to reduce the total size of the enum
|
90 - location: MultiLocation,
90 + location: Box<MultiLocation>,
|
|
this let-binding has unit value:
frame/xcm-info/src/lib.rs#L86
warning: this let-binding has unit value
--> frame/xcm-info/src/lib.rs:86:26
|
86 | #[pallet::weight(10_000)]
| ^^^^^^ help: omit the `let` binding: `10_000;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
|
this let-binding has unit value:
frame/xcm-info/src/lib.rs#L75
warning: this let-binding has unit value
--> frame/xcm-info/src/lib.rs:75:26
|
75 | #[pallet::weight(10_000)]
| ^^^^^^ help: omit the `let` binding: `10_000;`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
= note: `#[warn(clippy::let_unit_value)]` on by default
|
large size difference between variants:
frame/xcm-info/src/lib.rs#L45
warning: large size difference between variants
--> frame/xcm-info/src/lib.rs:45:5
|
45 | / pub enum Event<T: Config> {
46 | | /// Updated Relay XCM identifier.
47 | | RelayNetworkChanged(NetworkId),
| | ------------------------------ the second-largest variant contains at least 48 bytes
48 | | /// Added new asset XCM location.
49 | | AssetLinkAdded(T::AssetId, MultiLocation),
| | ----------------------------------------- the largest variant contains at least 656 bytes
50 | | }
| |_____^ the entire enum is at least 656 bytes
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
= note: `#[warn(clippy::large_enum_variant)]` on by default
help: consider boxing the large fields to reduce the total size of the enum
|
49 - AssetLinkAdded(T::AssetId, MultiLocation),
49 + AssetLinkAdded(T::AssetId, Box<MultiLocation>),
|
|
use of deprecated constant `pallet::warnings::ConstantWeight_1::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/13798>:
frame/xcm-info/src/lib.rs#L86
warning: use of deprecated constant `pallet::warnings::ConstantWeight_1::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/13798>
--> frame/xcm-info/src/lib.rs:86:26
|
86 | #[pallet::weight(10_000)]
| ^^^^^^
|
use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/13798>:
frame/xcm-info/src/lib.rs#L75
warning: use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
For more info see:
<https://github.com/paritytech/substrate/pull/13798>
--> frame/xcm-info/src/lib.rs:75:26
|
75 | #[pallet::weight(10_000)]
| ^^^^^^
|
= note: `#[warn(deprecated)]` on by default
|