Replace to_string into_boxed_str with into

This commit is contained in:
Devin R 2020-07-17 19:52:04 -04:00
parent 59cbf202e4
commit 029c60be78
2 changed files with 5 additions and 5 deletions

View file

@ -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()),