mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-05 06:38:51 +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()
|
.write()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.insert(
|
.insert(
|
||||||
(
|
(user_id.to_owned(), device_id.to_owned(), session.to_owned()),
|
||||||
user_id.to_owned(),
|
|
||||||
device_id.to_owned(),
|
|
||||||
session.to_string(),
|
|
||||||
),
|
|
||||||
request.to_owned(),
|
request.to_owned(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -175,11 +171,7 @@ impl Uiaa {
|
||||||
.userdevicesessionid_uiaarequest
|
.userdevicesessionid_uiaarequest
|
||||||
.read()
|
.read()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.get(&(
|
.get(&(user_id.to_owned(), device_id.to_owned(), session.to_owned()))
|
||||||
user_id.to_owned(),
|
|
||||||
device_id.to_owned(),
|
|
||||||
session.to_string(),
|
|
||||||
))
|
|
||||||
.map(|j| j.to_owned()))
|
.map(|j| j.to_owned()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue