aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/repository/vcs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/repository/vcs')
-rw-r--r--crates/shirabe/src/repository/vcs/github_driver.rs2
-rw-r--r--crates/shirabe/src/repository/vcs/gitlab_driver.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/shirabe/src/repository/vcs/github_driver.rs b/crates/shirabe/src/repository/vcs/github_driver.rs
index f2b2d458..60920969 100644
--- a/crates/shirabe/src/repository/vcs/github_driver.rs
+++ b/crates/shirabe/src/repository/vcs/github_driver.rs
@@ -1230,7 +1230,7 @@ impl GitHubDriver {
}
let links = explode(",", &header);
- for link in &links {
+ for link in links.iter() {
if let Some(m) = preg_match(php_regex!(r#"{<(.+?)>; *rel="next"}"#), link) {
return Some(m.get(1).unwrap_or_default().to_string());
}
diff --git a/crates/shirabe/src/repository/vcs/gitlab_driver.rs b/crates/shirabe/src/repository/vcs/gitlab_driver.rs
index d21a9ca1..f77eec5d 100644
--- a/crates/shirabe/src/repository/vcs/gitlab_driver.rs
+++ b/crates/shirabe/src/repository/vcs/gitlab_driver.rs
@@ -972,7 +972,7 @@ impl GitLabDriver {
let header = response.get_header("link").unwrap_or_default();
let links = explode(",", &header);
- for link in &links {
+ for link in links.iter() {
if let Some(match_) = preg_match(php_regex!(r#"{<(.+?)>; *rel="next"}"#), link) {
return Some(match_.get(1).unwrap_or_default().to_string());
}