diff --git a/src/api/server_server.rs b/src/api/server_server.rs index ce849103..b049f607 100644 --- a/src/api/server_server.rs +++ b/src/api/server_server.rs @@ -1784,7 +1784,7 @@ async fn create_join_event( .collect(), // Event field is required if the room version supports restricted join rules. event: Some( - to_raw_value(&CanonicalJsonValue::Object(value.clone())) + to_raw_value(&CanonicalJsonValue::Object(value)) .expect("To raw json should not fail since only change was adding signature"), ), })