Replace to_string into_boxed_str with into
This commit is contained in:
parent
59cbf202e4
commit
029c60be78
2 changed files with 5 additions and 5 deletions
|
@ -182,7 +182,7 @@ impl Users {
|
|||
self.userdeviceid_metadata.insert(
|
||||
userdeviceid,
|
||||
serde_json::to_string(&Device {
|
||||
device_id: device_id.to_string().into_boxed_str(),
|
||||
device_id: device_id.into(),
|
||||
display_name: initial_device_display_name,
|
||||
last_seen_ip: None, // TODO
|
||||
last_seen_ts: Some(SystemTime::now()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue