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 }