diff mbox series

jenkins: rustfmt style fixes

Message ID 20180810082352.22059-1-andrew.donnellan@au1.ibm.com
State Accepted
Headers show
Series jenkins: rustfmt style fixes | expand

Commit Message

Andrew Donnellan Aug. 10, 2018, 8:23 a.m. UTC
Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
---
 src/jenkins.rs | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/src/jenkins.rs b/src/jenkins.rs
index b751f598d687..0aa521224a96 100644
--- a/src/jenkins.rs
+++ b/src/jenkins.rs
@@ -68,10 +68,11 @@  impl CIBackend for JenkinsBackend {
             .extend_pairs(params)
             .finish();
 
-        let resp = self.post_url(&format!(
-            "{}/job/{}/buildWithParameters?{}",
-            self.base_url, job_name, params
-        )).expect("HTTP request error"); // TODO don't panic here
+        let resp =
+            self.post_url(&format!(
+                "{}/job/{}/buildWithParameters?{}",
+                self.base_url, job_name, params
+            )).expect("HTTP request error"); // TODO don't panic here
 
         match resp.headers().get::<Location>() {
             Some(loc) => Ok(loc.to_string()),
@@ -165,7 +166,8 @@  impl JenkinsBackend {
     }
 
     pub fn get_build_result(&self, build_url: &str) -> Option<TestState> {
-        match self.get_api_json_object(build_url)
+        match self
+            .get_api_json_object(build_url)
             .get("result")
             .unwrap()
             .as_str()