Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
patriksvensson committed Feb 3, 2020
1 parent 2fea691 commit c8e2c1a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/config/expansions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ mod utilities {
impl GitHubConfiguration {
pub fn get_credentials(&self) -> (&str, &str) {
match &self.credentials {
GitHubCredentials::Basic { username, password } => (username, password)
GitHubCredentials::Basic { username, password } => (username, password),
}
}
}
Expand Down
14 changes: 8 additions & 6 deletions src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,12 @@ pub enum TeamCityAuth {
/// # Basic authentication
/// Authenticate using basic authentication
#[serde(rename = "basic")]
BasicAuth {
BasicAuth {
/// # The username to use
username: String,
username: String,
/// # The password to use
password: String },
password: String,
},
}

#[derive(Serialize, Deserialize, JsonSchema, Clone)]
Expand Down Expand Up @@ -210,11 +211,12 @@ pub enum GitHubCredentials {
/// # Basic authentication
/// Authenticate using basic authentication
#[serde(rename = "basic")]
Basic {
Basic {
/// # The username to use
username: String,
username: String,
/// # The password to use
password: String },
password: String,
},
}

#[derive(Serialize, Deserialize, JsonSchema, Clone)]
Expand Down

0 comments on commit c8e2c1a

Please sign in to comment.