From fbed531a5c871d9216f4ab3e28bee19465be8a40 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 17 Jul 2024 00:03:59 +0200 Subject: [PATCH] src: clippy --- src/main.rs | 4 ++-- src/system.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)