Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src-tauri/src/commands/feature_preview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,3 @@ pub fn require(state: &State<AppState>, feature: PreviewFeature) -> Result<(), S
let db = state.db.lock().unwrap();
feature_preview::require(&db, feature)
}

pub fn enabled(state: &State<AppState>, feature: PreviewFeature) -> bool {
let db = state.db.lock().unwrap();
feature_preview::is_enabled(&db, feature)
}
8 changes: 4 additions & 4 deletions src-tauri/src/core/idempotency_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ impl IdempotencyStore {
/// detected rather than silently overwritten.
fn reclaim_stale(
&self,
operation: &str,
_operation: &str,
key: &str,
previous_claimed_at: &str,
) -> Result<bool, String> {
Expand All @@ -356,7 +356,7 @@ impl IdempotencyStore {
})
}

fn claimed_at(&self, operation: &str, key: &str) -> Result<Option<String>, String> {
fn claimed_at(&self, _operation: &str, key: &str) -> Result<Option<String>, String> {
self.with_connection(|conn| {
conn
.query_row(
Expand All @@ -371,7 +371,7 @@ impl IdempotencyStore {

/// Marks `operation`/`key` completed with `result` (already redacted by
/// the caller). Called after the mutation this claim guards actually ran.
pub fn complete(&self, operation: &str, key: &str, result: &Value) -> Result<(), String> {
pub fn complete(&self, _operation: &str, key: &str, result: &Value) -> Result<(), String> {
self.with_connection(|conn| {
conn
.execute(
Expand Down Expand Up @@ -403,7 +403,7 @@ impl IdempotencyStore {
/// a structured error rather than a network failure) so a later retry with
/// the same key is free to execute again rather than being stuck pending
/// forever.
pub fn abandon(&self, operation: &str, key: &str) -> Result<(), String> {
pub fn abandon(&self, _operation: &str, key: &str) -> Result<(), String> {
self.with_connection(|conn| {
conn
.execute(
Expand Down
Loading