Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove #[macro_use] annotation from mod service in all nodes. #2456

Merged
merged 2 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 1 addition & 2 deletions cumulus/parachain-template/node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
#![warn(missing_docs)]

mod chain_spec;
#[macro_use]
mod service;
mod cli;
mod command;
mod rpc;
mod service;

fn main() -> sc_cli::Result<()> {
command::run()
Expand Down
3 changes: 1 addition & 2 deletions cumulus/polkadot-parachain/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
#![warn(unused_extern_crates)]

mod chain_spec;
#[macro_use]
mod service;
mod cli;
mod command;
mod rpc;
mod service;

fn main() -> sc_cli::Result<()> {
command::run()
Expand Down
3 changes: 1 addition & 2 deletions substrate/bin/minimal/node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
#![warn(missing_docs)]

mod chain_spec;
#[macro_use]
mod service;
mod cli;
mod command;
mod rpc;
mod service;

fn main() -> sc_cli::Result<()> {
command::run()
Expand Down
5 changes: 2 additions & 3 deletions substrate/bin/node-template/node/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
//! Substrate Node Template CLI library.
#![warn(missing_docs)]

mod chain_spec;
#[macro_use]
mod service;
mod benchmarking;
mod chain_spec;
mod cli;
mod command;
mod rpc;
mod service;

fn main() -> sc_cli::Result<()> {
command::run()
Expand Down
6 changes: 2 additions & 4 deletions substrate/bin/node/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,14 @@

#![warn(missing_docs)]

pub mod chain_spec;

#[macro_use]
pub mod service;
#[cfg(feature = "cli")]
mod benchmarking;
pub mod chain_spec;
#[cfg(feature = "cli")]
mod cli;
#[cfg(feature = "cli")]
mod command;
pub mod service;

#[cfg(feature = "cli")]
pub use cli::*;
Expand Down
Loading