diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-06-23 09:05:56 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-06-23 09:05:56 +0200 |
| commit | 63774b3b4db4ab4750449548db2b716c6cb1a3bf (patch) | |
| tree | 554d60fe311e6eae23460aaabe400918ef9dc509 | |
| parent | 0784fd95bcca54c01285097eddea01020203e0a4 (diff) | |
clippy: Remove unnecessary return
| -rw-r--r-- | server/common/src/git.rs | 4 | ||||
| -rw-r--r-- | server/src/main.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/server/common/src/git.rs b/server/common/src/git.rs index 07c7e32..6b6cb6c 100644 --- a/server/common/src/git.rs +++ b/server/common/src/git.rs @@ -164,12 +164,12 @@ fn branch_eq(a: impl AsRef<str>, b: impl AsRef<str>) -> bool { if let Some(stripped_b) = b.strip_prefix("refs/heads/") { return stripped_a == stripped_b; } - return a == format!("refs/heads/{b}"); + a == format!("refs/heads/{b}") } else { if b.starts_with("refs/heads/") { return format!("refs/heads/{a}") == b; } - return a == b; + a == b } } diff --git a/server/src/main.rs b/server/src/main.rs index e4dff68..902d023 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -121,7 +121,7 @@ fn abbrivate_key(key: &str) -> String { } let start = &key[0..8]; let end = &key[len - 8..len]; - return format!("{start}...{end}"); + format!("{start}...{end}") } async fn get_project( @@ -193,7 +193,7 @@ fn cleanup_key(key: &str) -> String { _ => ret.push_str(line), } } - return ret; + ret } #[utoipa::path( |
