diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-07 17:16:37 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-07 17:16:37 +0000 |
| commit | 42bf1196003c0b39179d8c9d2c07ecf9a83a4a74 (patch) | |
| tree | d276dc3ac0e904f595d7ce88c30751112439311c /src/purgatory/mod.rs | |
| parent | b71111cc25b99acab786ece4607cb60e9cbebae4 (diff) | |
fix: resolve clippy warnings
- Prefix unused variable auth_result with underscore
- Prefix unused field git_data_path with underscore in Purgatory struct
- Add #[allow(clippy::too_many_arguments)] to handle_receive_pack
- Replace len() >= 1 with !is_empty()
- Replace .last() with .next_back() on DoubleEndedIterator
- Fix doc list item overindentation
- Replace map_or(true, ...) with is_none_or(...)
- Replace map_or(false, ...) with is_some_and(...)
Diffstat (limited to 'src/purgatory/mod.rs')
| -rw-r--r-- | src/purgatory/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/purgatory/mod.rs b/src/purgatory/mod.rs index 894c941..9427c71 100644 --- a/src/purgatory/mod.rs +++ b/src/purgatory/mod.rs | |||
| @@ -61,7 +61,7 @@ pub struct Purgatory { | |||
| 61 | /// Maps repository identifier to sync queue entry with timing/backoff state. | 61 | /// Maps repository identifier to sync queue entry with timing/backoff state. |
| 62 | sync_queue: Arc<DashMap<String, SyncQueueEntry>>, | 62 | sync_queue: Arc<DashMap<String, SyncQueueEntry>>, |
| 63 | 63 | ||
| 64 | git_data_path: PathBuf, | 64 | _git_data_path: PathBuf, |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | impl Purgatory { | 67 | impl Purgatory { |
| @@ -71,7 +71,7 @@ impl Purgatory { | |||
| 71 | state_events: Arc::new(DashMap::new()), | 71 | state_events: Arc::new(DashMap::new()), |
| 72 | pr_events: Arc::new(DashMap::new()), | 72 | pr_events: Arc::new(DashMap::new()), |
| 73 | sync_queue: Arc::new(DashMap::new()), | 73 | sync_queue: Arc::new(DashMap::new()), |
| 74 | git_data_path: git_data_path.into(), | 74 | _git_data_path: git_data_path.into(), |
| 75 | } | 75 | } |
| 76 | } | 76 | } |
| 77 | 77 | ||
| @@ -135,7 +135,7 @@ impl Purgatory { | |||
| 135 | if self | 135 | if self |
| 136 | .state_events | 136 | .state_events |
| 137 | .get(identifier) | 137 | .get(identifier) |
| 138 | .map_or(false, |entries| !entries.is_empty()) | 138 | .is_some_and(|entries| !entries.is_empty()) |
| 139 | { | 139 | { |
| 140 | return true; | 140 | return true; |
| 141 | } | 141 | } |