mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-12 15:42:57 +00:00
a69d8c63b3
We found that it's slow to load JSON when reading snap files. As described in [1], using from_slice instead of from_reader can fix this. Also, fix the error type being returned. 1. https://github.com/serde-rs/json/issues/160 Signed-off-by: Yi Wang <foxywang@tencent.com>