summaryrefslogtreecommitdiff
path: root/src/api/client_server/to_device.rs
diff options
context:
space:
mode:
authorNyaaori <+@nyaaori.cat>2022-10-10 14:09:11 +0200
committerNyaaori <+@nyaaori.cat>2022-10-10 14:09:11 +0200
commitf430b874598f4262e5af5ecee8dd396e317a1e87 (patch)
tree32544596835883720a8412b1618d52b82e78b05f /src/api/client_server/to_device.rs
parentca82b2940d9241b99e694f3c8d597feb5bf1bbc0 (diff)
downloadconduit-f430b874598f4262e5af5ecee8dd396e317a1e87.zip
cargo clippy
Diffstat (limited to 'src/api/client_server/to_device.rs')
-rw-r--r--src/api/client_server/to_device.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/client_server/to_device.rs b/src/api/client_server/to_device.rs
index 34db3f9..f84d54f 100644
--- a/src/api/client_server/to_device.rs
+++ b/src/api/client_server/to_device.rs
@@ -58,7 +58,7 @@ pub async fn send_event_to_device_route(
services().users.add_to_device_event(
sender_user,
target_user_id,
- &target_device_id,
+ target_device_id,
&body.event_type,
event.deserialize_as().map_err(|_| {
Error::BadRequest(ErrorKind::InvalidParam, "Event is invalid")