Skip to content

Commit e1221d5

Browse files
authored
Merge pull request #236 from jeckersb/clippy-fixes
Fix clippy warnings
2 parents 3eb0a39 + 60c3ff7 commit e1221d5

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
@@ -312,7 +312,7 @@ async fn upgrade(opts: UpgradeOpts) -> Result<()> {
312312
}
313313
}
314314
} else {
315-
let fetched = crate::deploy::pull(&sysroot, imgref, opts.quiet).await?;
315+
let fetched = crate::deploy::pull(sysroot, imgref, opts.quiet).await?;
316316
let staged_digest = staged_image.as_ref().map(|s| s.image_digest.as_str());
317317
let fetched_digest = fetched.manifest_digest.as_str();
318318
tracing::debug!("staged: {staged_digest:?}");

lib/src/install.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ pub(crate) mod config {
417417
mergeopt(&mut self.root_fs_type, other.root_fs_type);
418418
if let Some(other_kargs) = other.kargs {
419419
self.kargs
420-
.get_or_insert_with(|| Default::default())
420+
.get_or_insert_with(Default::default)
421421
.extend(other_kargs)
422422
}
423423
}

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)