mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
bumb dependencies except for bollard
This commit is contained in:
parent
48843efe1a
commit
e70764fbb5
3 changed files with 461 additions and 292 deletions
|
|
@ -4,7 +4,7 @@ use miette::{IntoDiagnostic, Report, Result, WrapErr};
|
|||
use serde::Deserialize;
|
||||
use std::convert::TryFrom;
|
||||
use std::env::var;
|
||||
use std::fs::{read, read_to_string};
|
||||
use std::fs::read_to_string;
|
||||
use std::net::IpAddr;
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
|
|
@ -192,10 +192,10 @@ impl HazeConfig {
|
|||
file.to_string_lossy()
|
||||
)));
|
||||
}
|
||||
let content = read(&file)
|
||||
let content = read_to_string(&file)
|
||||
.into_diagnostic()
|
||||
.wrap_err("Failed to read config file")?;
|
||||
toml::from_slice(&content)
|
||||
toml::from_str(&content)
|
||||
.into_diagnostic()
|
||||
.wrap_err("Failed to parse config file")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue