Selaa lähdekoodia

Supress warnings: unused code in config.

Jing Yang 5 vuotta sitten
vanhempi
commit
d04d35c561
3 muutettua tiedostoa jossa 6 lisäystä ja 3 poistoa
  1. 2 1
      tests/agreement_tests.rs
  2. 2 1
      tests/election_tests.rs
  3. 2 1
      tests/persist_tests.rs

+ 2 - 1
tests/agreement_tests.rs

@@ -8,7 +8,8 @@ extern crate scopeguard;
 
 use rand::{thread_rng, Rng};
 
-mod config;
+// This is to remove the annoying "unused code in config" warnings.
+pub mod config;
 
 #[test]
 fn basic_agreement() -> config::Result<()> {

+ 2 - 1
tests/election_tests.rs

@@ -6,7 +6,8 @@ extern crate ruaft;
 #[macro_use]
 extern crate scopeguard;
 
-mod config;
+// This is to remove the annoying "unused code in config" warnings.
+pub mod config;
 
 #[test]
 fn initial_election() -> config::Result<()> {

+ 2 - 1
tests/persist_tests.rs

@@ -12,7 +12,8 @@ use std::sync::Arc;
 
 use rand::{thread_rng, Rng};
 
-mod config;
+// This is to remove the annoying "unused code in config" warnings.
+pub mod config;
 
 #[test]
 fn persist() -> config::Result<()> {