From 7b2643ac8a6e3646afb851d282655d8d553bb495 Mon Sep 17 00:00:00 2001 From: Jason Mobarak Date: Tue, 12 Oct 2021 22:22:44 -0700 Subject: [PATCH] deps: bump libsettings and sbp --- Cargo.lock | 8 ++++---- console_backend/Cargo.toml | 4 ++-- console_backend/src/settings_tab.rs | 10 +--------- 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index da056d111..7b86d3d5a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1504,9 +1504,9 @@ dependencies = [ [[package]] name = "sbp" -version = "4.0.1" +version = "4.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4742b3ac1a093612d594706181b54f0251ba9a0c322fa973e8335be9a2a46c2" +checksum = "da261555e976f753231b2d01db5a3e1c944bf9f92152b96969b1b85ac0fb3f33" dependencies = [ "base64", "bytes", @@ -1521,9 +1521,9 @@ dependencies = [ [[package]] name = "sbp-settings" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d0a4dd50bfa975750c6cee60e1168e76e70631aec1d5b8c8a0e4e782fe4a4c4" +checksum = "52b61e692c1dfdbf437e0efd6596cdbd059818697177c866622d8a63fa9c1860" dependencies = [ "bindgen", "cmake", diff --git a/console_backend/Cargo.toml b/console_backend/Cargo.toml index 97530a41b..0e44b6c6f 100644 --- a/console_backend/Cargo.toml +++ b/console_backend/Cargo.toml @@ -40,8 +40,8 @@ minreq = { version = "2.4.2", features = ["https"] } regex = { version = "1.5.4" } semver = { version = "1" } rust-ini = "0.17.0" -sbp = { version = "4.0.1", features = ["json", "link", "swiftnav"] } -sbp-settings = "0.1.1" +sbp = { version = "4.0.2", features = ["json", "link", "swiftnav"] } +sbp-settings = "0.1.2" env_logger = { version = "0.9", optional = true } mimalloc = { version = "0.1", default-features = false } diff --git a/console_backend/src/settings_tab.rs b/console_backend/src/settings_tab.rs index 92fb38f57..a086408ac 100644 --- a/console_backend/src/settings_tab.rs +++ b/console_backend/src/settings_tab.rs @@ -184,16 +184,8 @@ impl<'link, S: CapnProtoSender> SettingsTab<'link, S> { if ins_on { let recommended_settings = self.get_recommended_ins_setting_changes()?; - for recommendation in recommended_settings { - // todo(DEVINFRA-570): Remove below line when libsettings-rs - // returns "True"/"False" for bools - let value = if &recommendation.3 == "true" { - "True" - } else { - &recommendation.3 - }; - self.write_setting(&recommendation.0, &recommendation.1, value)?; + self.write_setting(&recommendation.0, &recommendation.1, &recommendation.3)?; } }