From 43f0ba771198cefded80ce2f1d92c73029245d64 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Thu, 24 Nov 2022 12:37:20 +0100 Subject: [PATCH] chore: Appease clippy --- crates/matrix-sdk-crypto/src/verification/machine.rs | 1 + crates/matrix-sdk-crypto/src/verification/requests.rs | 4 ++-- xtask/src/swift.rs | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/matrix-sdk-crypto/src/verification/machine.rs b/crates/matrix-sdk-crypto/src/verification/machine.rs index 221794c5f..05a9a2fce 100644 --- a/crates/matrix-sdk-crypto/src/verification/machine.rs +++ b/crates/matrix-sdk-crypto/src/verification/machine.rs @@ -641,6 +641,7 @@ mod tests { } #[cfg(not(target_os = "macos"))] + #[allow(unknown_lints, clippy::unchecked_duration_subtraction)] #[async_test] async fn timing_out() { let (alice_machine, bob) = setup_verification_machine().await; diff --git a/crates/matrix-sdk-crypto/src/verification/requests.rs b/crates/matrix-sdk-crypto/src/verification/requests.rs index 63febb9cb..2e7deaeb7 100644 --- a/crates/matrix-sdk-crypto/src/verification/requests.rs +++ b/crates/matrix-sdk-crypto/src/verification/requests.rs @@ -949,9 +949,9 @@ struct Ready { } impl RequestState { - fn to_started_sas<'a>( + fn to_started_sas( &self, - content: &StartContent<'a>, + content: &StartContent<'_>, identities: IdentitiesBeingVerified, we_started: bool, request_handle: RequestHandle, diff --git a/xtask/src/swift.rs b/xtask/src/swift.rs index fe0257e85..db54d6639 100644 --- a/xtask/src/swift.rs +++ b/xtask/src/swift.rs @@ -215,8 +215,7 @@ fn build_xcframework( create_dir_all(framework_target.as_path())?; create_dir_all(swift_target.as_path())?; - let mut copy_options = fs_extra::dir::CopyOptions::default(); - copy_options.content_only = true; + let copy_options = fs_extra::dir::CopyOptions { content_only: true, ..Default::default() }; fs_extra::dir::copy(xcframework_path.as_path(), framework_target.as_path(), ©_options)?; fs_extra::dir::copy(swift_dir.as_path(), swift_target.as_path(), ©_options)?;