Skip to content

Commit 60c3ff7

Browse files
committed
Fix clippy warnings
Signed-off-by: John Eckersberg <[email protected]>
1 parent 8dc32a3 commit 60c3ff7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ async fn upgrade(opts: UpgradeOpts) -> Result<()> {
304304
}
305305
}
306306
} else {
307-
let fetched = crate::deploy::pull(&sysroot, imgref, opts.quiet).await?;
307+
let fetched = crate::deploy::pull(sysroot, imgref, opts.quiet).await?;
308308
let staged_digest = staged_image.as_ref().map(|s| s.image_digest.as_str());
309309
let fetched_digest = fetched.manifest_digest.as_str();
310310
tracing::debug!("staged: {staged_digest:?}");

lib/src/install.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ pub(crate) mod config {
404404
mergeopt(&mut self.root_fs_type, other.root_fs_type);
405405
if let Some(other_kargs) = other.kargs {
406406
self.kargs
407-
.get_or_insert_with(|| Default::default())
407+
.get_or_insert_with(Default::default)
408408
.extend(other_kargs)
409409
}
410410
}

lib/src/mount.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub(crate) struct Findmnt {
2525
#[context("Inspecting filesystem {path}")]
2626
pub(crate) fn inspect_filesystem(path: &Utf8Path) -> Result<Filesystem> {
2727
let desc = format!("Inspecting {path}");
28-
let o = Task::new(&desc, "findmnt")
28+
let o = Task::new(desc, "findmnt")
2929
.args([
3030
"-J",
3131
"-v",

0 commit comments

Comments
 (0)