@@ -101,7 +101,8 @@ impl JenkinsBackend {
format!(
"Basic {}",
base64::encode(&format!("{}:{}", username, token))
- ).parse()
+ )
+ .parse()
.unwrap(),
);
}
@@ -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
}
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(-)