diff options
Diffstat (limited to 'src/api/auth/device.rs')
-rw-r--r-- | src/api/auth/device.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/auth/device.rs b/src/api/auth/device.rs index 2b05e12..44fbd2a 100644 --- a/src/api/auth/device.rs +++ b/src/api/auth/device.rs @@ -130,9 +130,9 @@ pub(crate) async fn device( let (own_id, changed_id, notify) = match (dev.id, data.context.device_id) { (None, None) => { let new = DeviceID::random(); - (Some(new.clone()), new, true) + (Some(new), new, true) }, - (None, Some(own)) => (Some(own.clone()), own, false), + (None, Some(own)) => (Some(own), own, false), (Some(other), own) => (own, other, false), }; let result = db |