mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-04 16:28:53 +01:00
Replace to_string calls on string literals with to_owned
This commit is contained in:
parent
cf54185a1c
commit
84862352ba
1 changed files with 2 additions and 10 deletions
|
@ -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()))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue