Replace to_string calls on string literals with to_owned

This commit is contained in:
Jonas Platte 2022-01-13 11:48:40 +01:00
parent cf54185a1c
commit 84862352ba
No known key found for this signature in database
GPG key ID: CC154DE0E30B7C67

View file

@ -154,11 +154,7 @@ impl Uiaa {
.write()
.unwrap()
.insert(
(
user_id.to_owned(),
device_id.to_owned(),
session.to_string(),
),
(user_id.to_owned(), device_id.to_owned(), session.to_owned()),
request.to_owned(),
);
@ -175,11 +171,7 @@ impl Uiaa {
.userdevicesessionid_uiaarequest
.read()
.unwrap()
.get(&(
user_id.to_owned(),
device_id.to_owned(),
session.to_string(),
))
.get(&(user_id.to_owned(), device_id.to_owned(), session.to_owned()))
.map(|j| j.to_owned()))
}