Skip to main content

max / makenotwork

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>
Author: Max J. <87768334+MaxJMath@users.noreply.github.com> · 2026-04-26 20:05 UTC
Commit: abeb7930ace74764a3898e4313ff80566fabe362
Parent: 80f4127
4 files changed, +7 insertions, -2 deletions
@@ -122,6 +122,7 @@ pub async fn get_total_split_percent(pool: &PgPool, project_id: ProjectId) -> Re
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,6 +232,7 @@ pub async fn create_transaction_splits(
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,6 +137,7 @@ pub async fn refund_tip_by_payment_intent(pool: &PgPool, payment_intent_id: &str
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,6 +138,7 @@ pub async fn schedule_retry(
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,6 +151,7 @@ pub async fn get_dead_events(pool: &PgPool) -> Result<Vec<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,7 +10,7 @@ use serde::{Deserialize, Serialize};
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,7 +488,7 @@ pub async fn add_project_member(
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 {