From 90c8bd01df208c85967d1fb9169b7a7ad1685f73 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Sat, 15 Jul 2023 15:35:13 +0200 Subject: fix: Address anti-pattern found by newer clippy (#413) Toolchain updated and new clipply managed to find a new anti-pattern. --- src-tauri/src/github/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src-tauri') 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 -- cgit v1.2.3