crypto: Don't borrow inside a format unnecessarily

Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
master
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
1 changed files with 1 additions and 1 deletions

View File

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