mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #7148 from heinrich5991/pr_ddnet_mastersrv_rawvalue
mastersrv: Go to `RawValue` directly
This commit is contained in:
commit
a07fd521f7
|
@ -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