Fix compiler warnings: remove unused import, prefix unused var, allow dead_code on pre-built DB functions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4 files changed,
+7 insertions,
-2 deletions
| 122 |
122 |
|
}
|
| 123 |
123 |
|
|
| 124 |
124 |
|
/// Update a member's split percentage.
|
|
125 |
+ |
#[allow(dead_code)]
|
| 125 |
126 |
|
#[tracing::instrument(skip(pool))]
|
| 126 |
127 |
|
pub async fn update_member_split(
|
| 127 |
128 |
|
pool: &PgPool,
|
| 231 |
232 |
|
}
|
| 232 |
233 |
|
|
| 233 |
234 |
|
/// Get all revenue splits for a recipient, most recent first.
|
|
235 |
+ |
#[allow(dead_code)]
|
| 234 |
236 |
|
#[tracing::instrument(skip(pool))]
|
| 235 |
237 |
|
pub async fn get_splits_for_recipient(
|
| 236 |
238 |
|
pool: &PgPool,
|
| 137 |
137 |
|
}
|
| 138 |
138 |
|
|
| 139 |
139 |
|
/// Get tips sent by a user, most recent first.
|
|
140 |
+ |
#[allow(dead_code)]
|
| 140 |
141 |
|
#[tracing::instrument(skip(pool))]
|
| 141 |
142 |
|
pub async fn get_tips_sent(
|
| 142 |
143 |
|
pool: &PgPool,
|
| 138 |
138 |
|
}
|
| 139 |
139 |
|
|
| 140 |
140 |
|
/// Get dead events for admin review.
|
|
141 |
+ |
#[allow(dead_code)]
|
| 141 |
142 |
|
#[tracing::instrument(skip_all)]
|
| 142 |
143 |
|
pub async fn get_dead_events(pool: &PgPool) -> Result<Vec<DbWebhookEvent>> {
|
| 143 |
144 |
|
let events = sqlx::query_as::<_, DbWebhookEvent>(
|
| 150 |
151 |
|
}
|
| 151 |
152 |
|
|
| 152 |
153 |
|
/// Reset a dead event for retry.
|
|
154 |
+ |
#[allow(dead_code)]
|
| 153 |
155 |
|
#[tracing::instrument(skip_all)]
|
| 154 |
156 |
|
pub async fn retry_dead_event(pool: &PgPool, id: uuid::Uuid) -> Result<bool> {
|
| 155 |
157 |
|
let result = sqlx::query(
|
| 10 |
10 |
|
|
| 11 |
11 |
|
use crate::{
|
| 12 |
12 |
|
auth::AuthUser,
|
| 13 |
|
- |
db::{self, GitRepoId, ProjectId, ProjectType, Slug, Username, Visibility},
|
|
13 |
+ |
db::{self, GitRepoId, ProjectId, ProjectType, Slug, Visibility},
|
| 14 |
14 |
|
error::{AppError, Result},
|
| 15 |
15 |
|
helpers::{htmx_toast_response, is_htmx_request},
|
| 16 |
16 |
|
types::ListResponse,
|
| 488 |
488 |
|
.map(ProjectId::from)
|
| 489 |
489 |
|
.map_err(|_| AppError::BadRequest("Invalid project ID".to_string()))?;
|
| 490 |
490 |
|
|
| 491 |
|
- |
let project = verify_project_ownership(&state, project_id, session_user.id).await?;
|
|
491 |
+ |
let _project = verify_project_ownership(&state, project_id, session_user.id).await?;
|
| 492 |
492 |
|
|
| 493 |
493 |
|
// Validate split percent
|
| 494 |
494 |
|
if form.split_percent < 1 || form.split_percent > 99 {
|