mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
mastersrv: Go to RawValue
directly
Instead of going through `String`.
This commit is contained in:
parent
ee1b8baab5
commit
cbdd83f790
|
@ -718,8 +718,7 @@ fn handle_register(
|
|||
let info = i.as_object().ok_or("register info must be an object")?;
|
||||
|
||||
// Normalize the JSON to strip any spaces etc.
|
||||
let raw_info = json::to_string(&info).unwrap();
|
||||
Ok(json::value::RawValue::from_string(raw_info).unwrap())
|
||||
Ok(json::value::to_raw_value(&info).unwrap())
|
||||
})
|
||||
.transpose()?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue