Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: remove compiler warnings — duplicate match arm, unused var, dead_code

Louis Beaumont8ab80251c38c
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rs
index f1993fc07..9a0143030 100755
--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs
@@ -381,7 +381,7 @@ async fn main() {
let offline_mode = store_bool("offlineMode").unwrap_or(false);
// PostHog is disabled by either telemetry toggle or offline mode
// Sentry stays enabled in offline mode (crash reports still sent)
- let posthog_disabled = telemetry_disabled || offline_mode;
+ let _posthog_disabled = telemetry_disabled || offline_mode;
let app_version = env!("CARGO_PKG_VERSION");
// Sentry disabled only when telemetry is explicitly off, NOT for offline mode
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/permissions.rs b/apps/screenpipe-app-tauri/src-tauri/src/permissions.rs
index afab44f54..206212163 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/permissions.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/permissions.rs
@@ -399,6 +399,7 @@ pub fn do_permissions_check(initial_check: bool) -> OSPermissionsCheck {
/// Known Chromium-based browsers that use AppleScript for incognito detection
/// and (in Arc's case) URL capture. Each needs its own Automation permission.
#[cfg(target_os = "macos")]
+#[allow(dead_code)]
struct ChromiumBrowserInfo {
name: &'static str,
bundle_id: &'static str,
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/pi.rs b/apps/screenpipe-app-tauri/src-tauri/src/pi.rs
index 0f5d71114..38f774b83 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/pi.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/pi.rs
@@ -741,7 +741,6 @@ fn ensure_pi_config(
"openai" => "OPENAI_API_KEY".to_string(), // Pi will read from env
"openai-chatgpt" => "OPENAI_CHATGPT_TOKEN".to_string(), // OAuth token from env
"anthropic" => "ANTHROPIC_API_KEY".to_string(), // Pi will read from env
- "anthropic" => "ANTHROPIC_API_KEY".to_string(), // OAuth token injected at startup
"custom" => "CUSTOM_API_KEY".to_string(), // Pi will read from env
_ => "".to_string(),
};