Skip to content

Commit

Permalink
src: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
flokli committed Jul 16, 2024
1 parent ed5833c commit 123ca62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion src/system.rs
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 123ca62

Please sign in to comment.