Skip to content

Commit

Permalink
documentation, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelPanic0x committed Oct 8, 2024
1 parent f341998 commit ceeeef3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pub mod rendezvous;
mod server_messages;
#[cfg(test)]
mod test;
#[doc(hidden)]
pub mod wordlist;

use serde_derive::{Deserialize, Serialize};
Expand Down
2 changes: 2 additions & 0 deletions src/core/wordlist.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
///! Wordlist generation and wormhole code utilities
use rand::{rngs::OsRng, seq::SliceRandom};
use serde_json::{self, Value};
use std::fmt;
Expand All @@ -20,6 +21,7 @@ impl fmt::Debug for Wordlist {

impl Wordlist {
#[cfg(test)]
#[doc(hidden)]
pub fn new(num_words: usize, words: Vec<Vec<String>>) -> Wordlist {
Wordlist { num_words, words }
}
Expand Down

0 comments on commit ceeeef3

Please sign in to comment.