Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(cli): use cfg_attr allow instead of underscore prefix for checks param

ManthanNimodiya7f3ec98c5c4f
diff --git a/apps/cli/src/doctor.rs b/apps/cli/src/doctor.rs
index 787861c99..fe05a09ce 100644
--- a/apps/cli/src/doctor.rs
+++ b/apps/cli/src/doctor.rs
@@ -453,7 +453,8 @@ fn install_check(install: &Result<cap_cli_install::CliInstallStatus, String>) ->
}
}
-fn capture_ready(permissions: &Permissions, _checks: &[Check]) -> bool {
+#[cfg_attr(not(target_os = "macos"), allow(unused_variables))]
+fn capture_ready(permissions: &Permissions, checks: &[Check]) -> bool {
let permission_ready = match permissions.screen_recording {
#[cfg(target_os = "macos")]
PermissionStatus::Granted => true,