diff --git a/src/main.rs b/src/main.rs index dae92ff..74c5593 100644 --- a/src/main.rs +++ b/src/main.rs @@ -34,7 +34,7 @@ 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))) + 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)