fix(#999): remove lint warnings (unused mut, unread field)

This commit is contained in:
damocles 2026-06-01 21:45:23 +02:00
commit 8dc89f53d0
2 changed files with 2 additions and 2 deletions

View file

@ -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();

View file

@ -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();