diff --git a/src/main.rs b/src/main.rs index dae92ff..e8b210c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -34,8 +34,8 @@ fn main() -> color_eyre::eyre::Result<()> { let machine_id = system::get_machine_id().context("getting machine id")?; debug!("Loading the config"); - let config = Config::load(cli.default_config_path.map(|p| PathBuf::from(p))) - .context("loading config")?; + let config = + Config::load(cli.default_config_path.map(PathBuf::from)).context("loading config")?; info!(url=%cli.url, "Opening URL"); diff --git a/src/system.rs b/src/system.rs index ce727ea..9ed3634 100644 --- a/src/system.rs +++ b/src/system.rs @@ -1,6 +1,6 @@ use tracing::{instrument, warn}; -const MACHINE_ID_PATH: &'static str = "/etc/machine-id"; +const MACHINE_ID_PATH: &str = "/etc/machine-id"; /// Returns the system machine id /// (https://www.freedesktop.org/software/systemd/man/latest/machine-id.html)