[1/5] Formatting cleanups
diff mbox series

Message ID 20190201061714.7110-1-andrew.donnellan@au1.ibm.com
State Accepted
Headers show
Series
  • [1/5] Formatting cleanups
Related show

Commit Message

Andrew Donnellan Feb. 1, 2019, 6:17 a.m. UTC
Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
---
 src/jenkins.rs   |  3 ++-
 src/patchwork.rs | 19 ++++++++++---------
 2 files changed, 12 insertions(+), 10 deletions(-)

Comments

Andrew Donnellan Feb. 26, 2019, 4:19 a.m. UTC | #1
On 1/2/19 5:17 pm, Andrew Donnellan wrote:
> Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Series applied to master: c1e74f1bf521f3adab4ce69723ea412265aaeec3

Patch
diff mbox series

diff --git a/src/jenkins.rs b/src/jenkins.rs
index 593cee56716d..97dfe4f031db 100644
--- a/src/jenkins.rs
+++ b/src/jenkins.rs
@@ -101,7 +101,8 @@  impl JenkinsBackend {
                     format!(
                         "Basic {}",
                         base64::encode(&format!("{}:{}", username, token))
-                    ).parse()
+                    )
+                    .parse()
                     .unwrap(),
                 );
             }
diff --git a/src/patchwork.rs b/src/patchwork.rs
index 1c2d3821300b..f01779ec5274 100644
--- a/src/patchwork.rs
+++ b/src/patchwork.rs
@@ -243,7 +243,8 @@  impl PatchworkServer {
                     format!(
                         "Basic {}",
                         base64::encode(&format!("{}:{}", username, password))
-                    ).parse()
+                    )
+                    .parse()
                     .unwrap(),
                 );
             }
@@ -310,15 +311,15 @@  impl PatchworkServer {
 
     fn get_next_link(&self, _resp: &Response) -> Option<String> {
         /*
-        let next = resp.headers().get(LINK)?;
-        for val in next.values() {
-            if let Some(rel) = val.rel() {
-                if rel.iter().any(|reltype| reltype == &RelationType::Next) {
-                    return Some(val.link().to_string());
+                let next = resp.headers().get(LINK)?;
+                for val in next.values() {
+                    if let Some(rel) = val.rel() {
+                        if rel.iter().any(|reltype| reltype == &RelationType::Next) {
+                            return Some(val.link().to_string());
+                        }
+                    }
                 }
-            }
-        }
-*/
+        */
         None
     }