aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/github/mod.rs
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-07-15 15:35:13 +0200
committerGitHub <noreply@github.com>2023-07-15 15:35:13 +0200
commit90c8bd01df208c85967d1fb9169b7a7ad1685f73 (patch)
tree3217c60bdf51c5263ef904c2fb367415397fe744 /src-tauri/src/github/mod.rs
parente504f3bb97ad5e47bb721dc1de09bf7f9966833d (diff)
downloadFlightCore-90c8bd01df208c85967d1fb9169b7a7ad1685f73.tar.gz
FlightCore-90c8bd01df208c85967d1fb9169b7a7ad1685f73.zip
fix: Address anti-pattern found by newer clippy (#413)
Toolchain updated and new clipply managed to find a new anti-pattern.
Diffstat (limited to 'src-tauri/src/github/mod.rs')
-rw-r--r--src-tauri/src/github/mod.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src-tauri/src/github/mod.rs b/src-tauri/src/github/mod.rs
index 0eab305b..bc1ccfe8 100644
--- a/src-tauri/src/github/mod.rs
+++ b/src-tauri/src/github/mod.rs
@@ -297,8 +297,7 @@ fn turn_pr_number_into_link(input: &str, repo: &str) -> String {
// Extract `Mods/Launcher` from repo title
let last_line = repo
.split('/')
- .rev()
- .next()
+ .next_back()
.unwrap()
.trim_start_matches("Northstar");
// Extract PR number