Update to ron 0.8 (#5864)

# Objective

- Update ron to 0.8.0
- Fix breaking changes
- Closes #5862

## Solution

- Removed now non-existing method call (behavior is now the same without it)
This commit is contained in:
Ixentus 2022-09-02 14:20:49 +00:00
parent 7511c9bfaa
commit 662c6e9a34
5 changed files with 4 additions and 5 deletions

View file

@ -127,7 +127,7 @@ bevy_internal = { path = "crates/bevy_internal", version = "0.9.0-dev", default-
[dev-dependencies] [dev-dependencies]
anyhow = "1.0.4" anyhow = "1.0.4"
rand = "0.8.0" rand = "0.8.0"
ron = "0.7.0" ron = "0.8.0"
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }
bytemuck = "1.7" bytemuck = "1.7"
# Needed to poll Task examples # Needed to poll Task examples

View file

@ -24,7 +24,7 @@ bevy_tasks = { path = "../bevy_tasks", version = "0.9.0-dev" }
# other # other
serde = { version = "1.0", features = ["derive"], optional = true } serde = { version = "1.0", features = ["derive"], optional = true }
ron = { version = "0.7.0", optional = true } ron = { version = "0.8.0", optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies] [target.'cfg(target_arch = "wasm32")'.dependencies]

View file

@ -30,4 +30,4 @@ smallvec = { version = "1.6", features = ["serde", "union", "const_generics"], o
glam = { version = "0.21", features = ["serde"], optional = true } glam = { version = "0.21", features = ["serde"], optional = true }
[dev-dependencies] [dev-dependencies]
ron = "0.7.0" ron = "0.8.0"

View file

@ -22,7 +22,7 @@ bevy_render = { path = "../bevy_render", version = "0.9.0-dev" }
# other # other
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
ron = "0.7.0" ron = "0.8.0"
uuid = { version = "1.1", features = ["v4", "serde"] } uuid = { version = "1.1", features = ["v4", "serde"] }
anyhow = "1.0.4" anyhow = "1.0.4"
thiserror = "1.0" thiserror = "1.0"

View file

@ -141,7 +141,6 @@ where
S: Serialize, S: Serialize,
{ {
let pretty_config = ron::ser::PrettyConfig::default() let pretty_config = ron::ser::PrettyConfig::default()
.decimal_floats(true)
.indentor(" ".to_string()) .indentor(" ".to_string())
.new_line("\n".to_string()); .new_line("\n".to_string());
ron::ser::to_string_pretty(&serialize, pretty_config) ron::ser::to_string_pretty(&serialize, pretty_config)