Skip to content

Commit

Permalink
sources: Fix clippy warnings for 1.77.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sumukhballal committed Apr 10, 2024
1 parent 2064634 commit 0230d47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sources/updater/updog/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct Config {
// mode: Option<{Automatic, Managed, Disabled}>
}

/// Prints a more specific message before exiting through usage().
/// Prints a more specific message before exiting through `usage()`.
fn usage_msg<S: AsRef<str>>(msg: S) -> ! {
eprintln!("{}\n", msg.as_ref());
usage();
Expand Down Expand Up @@ -248,6 +248,7 @@ async fn write_target_to_disk<P: AsRef<Path>>(
let mut f = std::fs::OpenOptions::new()
.write(true)
.create(true)
.truncate(true)
.open(&disk_path)
.context(error::OpenPartitionSnafu { path: disk_path })?;
std::io::copy(&mut reader, &mut f).context(error::WriteUpdateSnafu)?;
Expand Down

0 comments on commit 0230d47

Please sign in to comment.