Skip to content

Commit aaa8954

Browse files
authored
Merge pull request #168 from jlebon/pr/clippy-warnings
2 parents 82a6a5a + d881220 commit aaa8954

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lib/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ async fn edit(opts: EditOpts) -> Result<()> {
441441
anyhow::bail!("No changes in current host spec");
442442
}
443443
let new_spec = RequiredHostSpec::from_spec(&new_host.spec)?;
444-
let fetched = pull(repo, &new_spec.image, opts.quiet).await?;
444+
let fetched = pull(repo, new_spec.image, opts.quiet).await?;
445445

446446
// TODO gc old layers here
447447

lib/src/deploy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ pub(crate) async fn stage(
128128
sysroot,
129129
merge_deployment.as_ref(),
130130
stateroot,
131-
&image,
131+
image,
132132
&origin,
133133
)
134134
.await?;

lib/src/install.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,10 +1091,10 @@ pub(crate) async fn install_to_filesystem(opts: InstallToFilesystemOpts) -> Resu
10911091
let rootarg = format!("root={root_mount_spec}");
10921092
let boot = if let Some(spec) = fsopts.boot_mount_spec {
10931093
Some(MountSpec::new(&spec, "/boot"))
1094-
} else if let Some(boot_uuid) = boot_uuid.as_deref() {
1095-
Some(MountSpec::new_uuid_src(&boot_uuid, "/boot"))
10961094
} else {
1097-
None
1095+
boot_uuid
1096+
.as_deref()
1097+
.map(|boot_uuid| MountSpec::new_uuid_src(boot_uuid, "/boot"))
10981098
};
10991099
// By default, we inject a boot= karg because things like FIPS compliance currently
11001100
// require checking in the initramfs.

lib/src/install/baseline.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ pub(crate) fn install_create_rootfs(
372372
.run()?;
373373
let efifs_path = bootfs.join(crate::bootloader::EFI_DIR);
374374
std::fs::create_dir(&efifs_path).context("Creating efi dir")?;
375-
mount::mount(&espdev, &efifs_path)?;
375+
mount::mount(espdev, &efifs_path)?;
376376
}
377377

378378
let luks_device = match opts.block_setup {

0 commit comments

Comments
 (0)