Skip to content

Commit

Permalink
style: Ignore clippy::items_after_test_module lint (#2585)
Browse files Browse the repository at this point in the history
  • Loading branch information
ark0f authored Apr 25, 2023
1 parent 32c1b91 commit 4e027d8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lazy-pages/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
//! Note: currently we restrict twice write signal from same page during one execution.
//! It's not necessary behavior, but more simple and safe.

#![allow(clippy::items_after_test_module)]

use common::{LazyPagesExecutionContext, LazyPagesRuntimeContext};
use gear_backend_common::lazy_pages::{GlobalsAccessConfig, Status};
use pages::{PageNumber, WasmPageNumber};
Expand Down
2 changes: 2 additions & 0 deletions node/authorship/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
// The block proposer explicitly pushes the `pallet_gear::run`
// extrinsic at the end of each block.

#![allow(clippy::items_after_test_module)]

mod authorship;
mod block_builder;

Expand Down
1 change: 1 addition & 0 deletions pallets/staking-rewards/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
//!

#![cfg_attr(not(feature = "std"), no_std)]
#![allow(clippy::items_after_test_module)]

pub mod extension;
mod inflation;
Expand Down
2 changes: 2 additions & 0 deletions utils/wasm-gen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#![allow(clippy::items_after_test_module)]

use std::{collections::BTreeMap, iter::Cycle, ops::RangeInclusive};

use arbitrary::Unstructured;
Expand Down
1 change: 1 addition & 0 deletions utils/wasm-instrument/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.

#![cfg_attr(not(feature = "std"), no_std)]
#![allow(clippy::items_after_test_module)]

extern crate alloc;

Expand Down

0 comments on commit 4e027d8

Please sign in to comment.