Skip to content
Snippets Groups Projects
Verified Commit 61ec58b8 authored by Loris Moulin's avatar Loris Moulin
Browse files

chore: cargo fmt

parent 297143bc
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ states! {
///
/// ```
/// use configuration::NetworkConfigBuilder;
///
///
/// let network_config = NetworkConfigBuilder::new()
/// .with_relaychain(|relaychain| {
/// relaychain
......
......@@ -21,7 +21,7 @@ use crate::shared::{
///
/// ```
/// use configuration::shared::node::EnvVar;
///
///
/// let simple_var: EnvVar = ("FOO", "BAR").into();
///
/// assert_eq!(
......
......@@ -16,7 +16,7 @@ use super::{
///
/// ```
/// use configuration::shared::resources::ResourceQuantity;
///
///
/// let quantity1: ResourceQuantity = "100000".try_into().unwrap();
/// let quantity2: ResourceQuantity = "1000m".try_into().unwrap();
/// let quantity3: ResourceQuantity = "1Gi".try_into().unwrap();
......
......@@ -21,7 +21,7 @@ pub type ParaId = u32;
/// # Examples:
/// ```
/// use configuration::shared::types::Chain;
///
///
/// let polkadot: Chain = "polkadot".try_into().unwrap();
/// let kusama: Chain = "kusama".try_into().unwrap();
/// let myparachain: Chain = "myparachain".try_into().unwrap();
......@@ -61,7 +61,7 @@ impl Chain {
/// # Examples:
/// ```
/// use configuration::shared::types::Image;
///
///
/// let image1: Image = "name".try_into().unwrap();
/// let image2: Image = "name:version".try_into().unwrap();
/// let image3: Image = "myrepo.com/name:version".try_into().unwrap();
......@@ -149,7 +149,7 @@ impl Command {
/// use url::Url;
/// use std::{path::PathBuf, str::FromStr};
/// use configuration::shared::types::AssetLocation;
///
///
/// let url_location: AssetLocation = Url::from_str("https://mycloudstorage.com/path/to/my/file.tgz").unwrap().into();
/// let url_location2: AssetLocation = "https://mycloudstorage.com/path/to/my/file.tgz".into();
/// let path_location: AssetLocation = PathBuf::from_str("/tmp/path/to/my/file").unwrap().into();
......@@ -196,7 +196,7 @@ impl From<&str> for AssetLocation {
/// # Examples:
/// ```
/// use configuration::shared::types::Arg;
///
///
/// let flag_arg: Arg = "myflag".into();
/// let option_arg: Arg = ("name", "value").into();
///
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment