From 101495a39b742f0e4c322a5639b0c36548cb00a8 Mon Sep 17 00:00:00 2001 From: Ruben De Smet Date: Mon, 7 Aug 2023 13:59:32 +0200 Subject: [PATCH] Make rustfmt happy --- libsignal-service/src/provisioning/manager.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/libsignal-service/src/provisioning/manager.rs b/libsignal-service/src/provisioning/manager.rs index 8c2af411f..fb0391ada 100644 --- a/libsignal-service/src/provisioning/manager.rs +++ b/libsignal-service/src/provisioning/manager.rs @@ -346,12 +346,11 @@ impl LinkingManager

{ self.password.clone(), ); - let provisioning_code = message - .provisioning_code - .ok_or(ProvisioningError::InvalidData { - reason: "no provisioning confirmation code" - .into(), - })?; + let provisioning_code = message.provisioning_code.ok_or( + ProvisioningError::InvalidData { + reason: "no provisioning confirmation code".into(), + }, + )?; let device_id = provisioning_manager .confirm_device(