Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Apr 19, 2024
1 parent 255fe24 commit 2ee3326
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion devenv-run-tests/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use clap::Parser;
use std::fs;
use std::path::{Path, PathBuf};
use std::path::PathBuf;

#[derive(Parser, Debug)]
#[clap(author, version, about, long_about = None)]
Expand Down
5 changes: 3 additions & 2 deletions devenv/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ impl App {
serde_json::from_slice::<CachixResponse>(&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());
}
}
}
Expand Down Expand Up @@ -384,7 +384,8 @@ pub struct CachixCaches {

#[derive(Deserialize, Clone)]
struct CachixResponse {
publicSigningKeys: Vec<String>,
#[serde(rename = "publicSigningKeys")]
public_signing_keys: Vec<String>,
}

#[derive(Deserialize, Clone)]
Expand Down
1 change: 1 addition & 0 deletions devenv/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ impl From<&Input> for FlakeInput {
fn true_default() -> bool {
true
}
#[allow(dead_code)]
fn false_default() -> bool {
false
}
Expand Down

0 comments on commit 2ee3326

Please sign in to comment.