Skip to content

Commit

Permalink
remove recursion limit (paritytech#3348)
Browse files Browse the repository at this point in the history
According to the
[doc](https://doc.rust-lang.org/reference/attributes/limits.html), the
default is 128, so no point to specify limit with 128

Co-authored-by: Bastian Köcher <git@kchr.de>
  • Loading branch information
xlc and bkchr committed Feb 16, 2024
1 parent 0f12c1e commit 64ea4c5
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion substrate/client/executor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
//! wasm engine used, instance cache.

#![warn(missing_docs)]
#![recursion_limit = "128"]

#[macro_use]
mod executor;
Expand Down
1 change: 0 additions & 1 deletion substrate/frame/collective/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
//! If there are not, or if no prime is set, then the motion is dropped without being executed.

#![cfg_attr(not(feature = "std"), no_std)]
#![recursion_limit = "128"]

use codec::{Decode, Encode, MaxEncodedLen};
use scale_info::TypeInfo;
Expand Down
1 change: 0 additions & 1 deletion substrate/frame/core-fellowship/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
//! cannot be approved - they must proceed only to promotion prior to the offboard timeout elapsing.

#![cfg_attr(not(feature = "std"), no_std)]
#![recursion_limit = "128"]

use codec::{Decode, Encode, MaxEncodedLen};
use scale_info::TypeInfo;
Expand Down
1 change: 0 additions & 1 deletion substrate/frame/ranked-collective/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
//! least a particular rank.

#![cfg_attr(not(feature = "std"), no_std)]
#![recursion_limit = "128"]

use codec::{Decode, Encode, MaxEncodedLen};
use scale_info::TypeInfo;
Expand Down
1 change: 0 additions & 1 deletion substrate/frame/salary/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
//! Make periodic payment to members of a ranked collective according to rank.

#![cfg_attr(not(feature = "std"), no_std)]
#![recursion_limit = "128"]

use codec::{Decode, Encode, MaxEncodedLen};
use core::marker::PhantomData;
Expand Down
2 changes: 0 additions & 2 deletions substrate/frame/support/procedural/tools/derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
//! Use to derive parsing for parsing struct.
// end::description[]

#![recursion_limit = "128"]

use proc_macro::TokenStream;
use proc_macro2::Span;
use quote::quote;
Expand Down

0 comments on commit 64ea4c5

Please sign in to comment.