From 149f6dd0315d1c40cd310e61aadd4840860db484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Fri, 19 Apr 2024 12:28:07 +0100 Subject: [PATCH] fix warnings --- devenv/src/command.rs | 5 +++-- devenv/src/config.rs | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/devenv/src/command.rs b/devenv/src/command.rs index 0e31f050b..2c43a9532 100644 --- a/devenv/src/command.rs +++ b/devenv/src/command.rs @@ -295,7 +295,7 @@ impl App { serde_json::from_slice::(&resp.bytes().unwrap()) .expect("Failed to parse JSON"); new_known_keys - .insert(name.clone(), resp_json.publicSigningKeys[0].clone()); + .insert(name.clone(), resp_json.public_signing_keys[0].clone()); } } } @@ -384,7 +384,8 @@ pub struct CachixCaches { #[derive(Deserialize, Clone)] struct CachixResponse { - publicSigningKeys: Vec, + #[serde(rename = "publicSigningKeys")] + public_signing_keys: Vec, } #[derive(Deserialize, Clone)] diff --git a/devenv/src/config.rs b/devenv/src/config.rs index 61383b801..17ceae076 100644 --- a/devenv/src/config.rs +++ b/devenv/src/config.rs @@ -54,6 +54,7 @@ impl From<&Input> for FlakeInput { fn true_default() -> bool { true } +#[allow(dead_code)] fn false_default() -> bool { false }