Skip to content

Commit 02f81b6

Browse files
authored
Fix clippy warning on macOS (#10282)
## Problem On macOS: ``` error: unused variable: `disable_lfc_resizing` --> compute_tools/src/bin/compute_ctl.rs:431:9 | 431 | disable_lfc_resizing, | ^^^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `disable_lfc_resizing: _` | = note: `-D unused-variables` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(unused_variables)]` ``` ## Summary of changes - Initialise `disable_lfc_resizing` only on Linux (because it's used on Linux only in further bloc)
1 parent ad7f14d commit 02f81b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compute_tools/src/bin/compute_ctl.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ fn start_postgres(
428428
let &ComputeSpec {
429429
swap_size_bytes,
430430
disk_quota_bytes,
431+
#[cfg(target_os = "linux")]
431432
disable_lfc_resizing,
432433
..
433434
} = &state.pspec.as_ref().unwrap().spec;

0 commit comments

Comments
 (0)