Skip to content

Commit

Permalink
Remove useless clippy and old doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
AurelienFT committed Oct 17, 2023
1 parent 4a2759f commit cd83b45
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion massa-factory-worker/src/tests/tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use massa_wallet::test_exports::create_test_wallet;
/// This structure store all information and links to creates tests for the factory.
/// The factory will ask that to the the pool, consensus and factory and then will send the block to the consensus.
/// You can use the method `new` to build all the mocks and make the connections
/// Then you can use the method `get_next_created_block` that will manage the answers from the mock to the factory depending on the parameters you gave.
#[allow(dead_code)]
pub struct TestFactory {
factory_config: FactoryConfig,
Expand Down
4 changes: 2 additions & 2 deletions massa-grpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ homepage = "https://massa.net"
documentation = "https://docs.massa.net/"

[features]
testing = ["num"]
testing = []

[dependencies]
massa-proto-rs = { workspace = true, "features" = ["tonic"] }
Expand All @@ -29,7 +29,6 @@ parking_lot = { workspace = true, "features" = ["deadlock_detection"] }
h2 = { workspace = true }
itertools = { workspace = true }
# test
num = { workspace = true, optional = true }

massa_consensus_exports = { workspace = true }
massa_hash = { workspace = true }
Expand All @@ -52,3 +51,4 @@ massa_consensus_exports = { workspace = true, "features" = ["testing"] }
massa_protocol_exports = { workspace = true, "features" = ["testing"] }
massa_final_state = { workspace = true }
tokio = { workspace = true, "features" = ["test-util", "time"] }
num = {workspace = true}
1 change: 0 additions & 1 deletion massa-grpc/src/tests/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ use std::path::PathBuf;
/// * `addr` - the address to bind to
/// # Returns
/// * `MassaPublicGrpc` - the grpc public service
#[allow(dead_code)]
pub(crate) fn grpc_public_service(addr: &SocketAddr) -> MassaPublicGrpc {
let consensus_ctrl = Box::new(MockConsensusController::new());
let shared_storage: massa_storage::Storage = massa_storage::Storage::create_root();
Expand Down
2 changes: 1 addition & 1 deletion massa-grpc/src/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2023 MASSA LABS <info@massa.net>
/// mock for testing
#[cfg(any(test, feature = "testing"))]
#[cfg(test)]
pub mod mock;

#[cfg(test)]
Expand Down

0 comments on commit cd83b45

Please sign in to comment.