Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hansieodendaal committed May 31, 2023
1 parent 2a8dfd9 commit bfdb20d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion common/src/configuration/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,10 @@ pub trait ConfigLoader: ConfigPath + Sized {
/// config.set("my_node.goodbye_message", "see you later");
/// let my_config = MyNodeConfig::load_from(&config).unwrap();
/// assert_eq!(my_config.goodbye_message, "see you later".to_string());
/// assert_eq!(my_config.welcome_message, MyNodeConfig::default().welcome_message);
/// assert_eq!(
/// my_config.welcome_message,
/// MyNodeConfig::default().welcome_message
/// );
/// ```
pub trait DefaultConfigLoader: ConfigPath + Sized {
/// Try to load configuration from supplied Config by `main_key_prefix()`
Expand Down
4 changes: 3 additions & 1 deletion comms/dht/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ use crate::{
///
/// ```rust
/// # use tari_comms_dht::{DbConnectionUrl, Dht};
/// let builder = Dht::builder().mainnet().with_database_url(DbConnectionUrl::Memory);
/// let builder = Dht::builder()
/// .mainnet()
/// .with_database_url(DbConnectionUrl::Memory);
/// // let dht = builder.build(...).unwrap();
/// ```
#[derive(Debug, Clone, Default)]
Expand Down

0 comments on commit bfdb20d

Please sign in to comment.