crypto: Don't borrow inside a format unnecessarily

Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
This commit is contained in:
poljar 2021-04-20 12:27:56 +02:00 committed by GitHub
parent 4a7be13961
commit e15f7264dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,7 +39,7 @@ use crate::{
fn encode_key_info(info: &RequestedKeyInfo) -> String {
format!(
"{}{}{}{}",
&info.room_id, &info.sender_key, &info.algorithm, &info.session_id
info.room_id, info.sender_key, info.algorithm, info.session_id
)
}