Skip to content

Commit

Permalink
Linux and macOS rustc+clippy fixes
Browse files Browse the repository at this point in the history
Summary: Rustc and clippy clean.

Reviewed By: ndmitchell, aniketmathur

Differential Revision: D65802188

fbshipit-source-id: 9aaabed20f9825e58b08c3a399e10c15946d51f7
  • Loading branch information
zertosh authored and facebook-github-bot committed Nov 12, 2024
1 parent 8188fa8 commit 3994f21
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions td_util/src/knobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ pub fn check_boolean_knob(name: &str) -> bool {
}

#[cfg(any(not(fbcode_build), not(target_os = "linux")))]
pub fn check_boolean_knob_with_switch(name: &str, switch_val: Option<&str>, default: bool) -> bool {
pub fn check_boolean_knob_with_switch(
_name: &str,
_switch_val: Option<&str>,
default: bool,
) -> bool {
default
}

Expand All @@ -29,9 +33,9 @@ pub fn check_boolean_knob_with_switch(name: &str, switch_val: Option<&str>, defa

#[cfg(any(not(fbcode_build), not(target_os = "linux")))]
pub fn check_boolean_knob_with_switch_and_consistent_pass_rate(
name: &str,
hash_val: Option<&str>,
switch_val: Option<&str>,
_name: &str,
_hash_val: Option<&str>,
_switch_val: Option<&str>,
default: bool,
) -> bool {
default
Expand Down

0 comments on commit 3994f21

Please sign in to comment.