Skip to content

Commit dd76a91

Browse files
committed
ci: fix gardenlinux clippy (new rust/clippy version)
We have a new Rust version since yesterday and the new clippy catches more things. Signed-off-by: Philipp Schuster <[email protected]> On-behalf-of: SAP [email protected]
1 parent dc66add commit dd76a91

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

api_client/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ pub fn simple_api_full_command_with_fds<T: Read + Write + ScmSocket>(
188188
request_fds,
189189
)?;
190190

191-
if response.is_some() {
192-
println!("{}", response.unwrap());
191+
if let Some(response) = response {
192+
println!("{response}");
193193
}
194194

195195
Ok(())

vmm/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2194,6 +2194,7 @@ impl Vmm {
21942194
/// This function performs necessary after-migration cleanup only in the
21952195
/// good case. Callers are responsible for properly handling failed
21962196
/// migrations.
2197+
#[allow(unused_assignments)] // because of `s.total_time =`
21972198
fn send_migration(
21982199
vm: &mut Vm,
21992200
#[cfg(all(feature = "kvm", target_arch = "x86_64"))] hypervisor: Arc<

0 commit comments

Comments
 (0)