From 7955fabd0d2e03f00adc7ec3be9a1f7f44a5c354 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 12 Dec 2024 19:38:30 +0800 Subject: [PATCH] fix: formatting --- nomos-cluster-tests/src/cluster.rs | 3 --- nomos-cluster-tests/src/lib.rs | 3 +-- nomos-cluster-tests/src/main.rs | 8 +++++--- nomos-cluster-tests/src/node.rs | 3 +-- .../src/test_case/data_integrity_nodes_join_leave.rs | 4 ++-- nomos-cluster-tests/src/test_case/mod.rs | 2 +- 6 files changed, 10 insertions(+), 13 deletions(-) diff --git a/nomos-cluster-tests/src/cluster.rs b/nomos-cluster-tests/src/cluster.rs index 65f8da97..f3b34279 100644 --- a/nomos-cluster-tests/src/cluster.rs +++ b/nomos-cluster-tests/src/cluster.rs @@ -2,7 +2,4 @@ use crate::node::NomosNode; pub trait Cluster { fn members(&self) -> Vec>; - } - - diff --git a/nomos-cluster-tests/src/lib.rs b/nomos-cluster-tests/src/lib.rs index 98e67a9b..23a4adf7 100644 --- a/nomos-cluster-tests/src/lib.rs +++ b/nomos-cluster-tests/src/lib.rs @@ -1,10 +1,9 @@ mod cluster; -mod node; pub mod config; +mod node; pub mod test_case; pub trait TestCase { fn name(&self) -> &'static str; fn run(&self) -> Result<(), anyhow::Error>; } - diff --git a/nomos-cluster-tests/src/main.rs b/nomos-cluster-tests/src/main.rs index 3d20d4bb..bad4c6a0 100644 --- a/nomos-cluster-tests/src/main.rs +++ b/nomos-cluster-tests/src/main.rs @@ -1,8 +1,10 @@ - - -use nomos_cluster_tests::{config::{Config, LogArgs}, test_case::data_integrity_nodes_join_leave::DataIntegrityNodesJoinLeave, TestCase}; use clap::Parser; use color_eyre::eyre::Result; +use nomos_cluster_tests::{ + config::{Config, LogArgs}, + test_case::data_integrity_nodes_join_leave::DataIntegrityNodesJoinLeave, + TestCase, +}; #[derive(Parser, Debug)] #[command(author, version, about, long_about = None)] diff --git a/nomos-cluster-tests/src/node.rs b/nomos-cluster-tests/src/node.rs index 34087f7b..d84c70d8 100644 --- a/nomos-cluster-tests/src/node.rs +++ b/nomos-cluster-tests/src/node.rs @@ -1,5 +1,4 @@ - pub trait NomosNode { fn start(&self) -> String; fn stop(&self) -> String; -} \ No newline at end of file +} diff --git a/nomos-cluster-tests/src/test_case/data_integrity_nodes_join_leave.rs b/nomos-cluster-tests/src/test_case/data_integrity_nodes_join_leave.rs index 500a461d..8fcf5c4a 100644 --- a/nomos-cluster-tests/src/test_case/data_integrity_nodes_join_leave.rs +++ b/nomos-cluster-tests/src/test_case/data_integrity_nodes_join_leave.rs @@ -1,5 +1,5 @@ -use anyhow::Error; use crate::TestCase; +use anyhow::Error; pub struct DataIntegrityNodesJoinLeave; @@ -11,4 +11,4 @@ impl TestCase for DataIntegrityNodesJoinLeave { fn run(&self) -> Result<(), Error> { todo!() } -} \ No newline at end of file +} diff --git a/nomos-cluster-tests/src/test_case/mod.rs b/nomos-cluster-tests/src/test_case/mod.rs index 07b78d12..14cf0825 100644 --- a/nomos-cluster-tests/src/test_case/mod.rs +++ b/nomos-cluster-tests/src/test_case/mod.rs @@ -1 +1 @@ -pub mod data_integrity_nodes_join_leave; \ No newline at end of file +pub mod data_integrity_nodes_join_leave;