Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Feb 22, 2024
1 parent b4173d6 commit 3bc535c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions code/node/bin/cli.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#![cfg_attr(coverage_nightly, coverage(off))]

use malachite_node::network::PeerId;

pub struct Cli {
pub peer_id: PeerId,
}

impl Cli {
#[cfg_attr(coverage_nightly, coverage(off))]
pub fn from_env() -> Self {
let peer_id = std::env::args()
.nth(1)
Expand Down
3 changes: 2 additions & 1 deletion code/node/bin/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![cfg_attr(coverage_nightly, coverage(off))]
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

use malachite_node::config::Config;
use malachite_node::util::make_node;
Expand All @@ -10,6 +10,7 @@ use tracing::info;
mod cli;
use cli::Cli;

#[cfg_attr(coverage_nightly, coverage(off))]
#[tokio::main(flavor = "current_thread")]
pub async fn main() {
tracing_subscriber::fmt::init();
Expand Down
2 changes: 2 additions & 0 deletions code/node/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

pub mod config;
pub mod network;
pub mod node;
Expand Down

0 comments on commit 3bc535c

Please sign in to comment.