fix(#999): remove lint warnings (unused mut, unread field)
This commit is contained in:
parent
d35b7ab9b4
commit
8dc89f53d0
2 changed files with 2 additions and 2 deletions
|
|
@ -484,7 +484,7 @@ fn parse_peer_hives() -> Vec<PeerHiveView> {
|
|||
#[derive(serde::Deserialize)]
|
||||
struct Raw {
|
||||
domain: String,
|
||||
cert_fingerprint: Option<String>,
|
||||
_cert_fingerprint: Option<String>,
|
||||
}
|
||||
let Ok(json) = std::env::var("HYPERHIVE_PEERS") else {
|
||||
return Vec::new();
|
||||
|
|
|
|||
|
|
@ -376,7 +376,7 @@ fn write_nspawn_flags(container: &str, binds: &[BindMount]) -> Result<()> {
|
|||
let path = format!("/etc/nixos-containers/{container}.conf");
|
||||
let original = std::fs::read_to_string(&path)
|
||||
.with_context(|| format!("read {path}"))?;
|
||||
let mut lines: Vec<&str> = original
|
||||
let lines: Vec<&str> = original
|
||||
.lines()
|
||||
.filter(|line| {
|
||||
let t = line.trim_start();
|
||||
|
|
|
|||
Loading…
Reference in a new issue