mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-17 10:48:18 -07:00
Replace to_string calls on string literals with to_owned
This commit is contained in:
parent
cf54185a1c
commit
84862352ba
@ -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 New Issue
Block a user