Repository: jonasbb/serde_with
Pull request #836 (2025-05-03 01:42:01)

Bump ron from 0.8.1 to 0.10.1
Bumps [ron](https://github.com/ron-rs/ron) from 0.8.1 to 0.10.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/ron-rs/ron/releases">ron's releases</a>.</em></p>
<blockquote>
<h2>v0.10.1</h2>
<h1>ron v0.10.1</h1>
<p>This is a very small release to fix the potential breakage that the new <code>Number</code> enum could cause by having feature-dependent variants. Now the <code>Number</code> enum is non-exhaustive. Please refer to <a href="https://docs.rs/ron/0.10.1/ron/value/enum.Number.html">https://docs.rs/ron/0.10.1/ron/value/enum.Number.html</a> for further details.</p>
<h2>What's Changed</h2>
<ul>
<li>Allow writing to io::Writer by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/562">ron-rs/ron#562</a></li>
<li>Make Number non-exhaustive by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/564">ron-rs/ron#564</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/ron-rs/ron/compare/v0.9.0...v0.10.1">https://github.com/ron-rs/ron/compare/v0.9.0...v0.10.1</a></p>
<h2>v0.9.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Expected bytes error and import cleanup by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/400">ron-rs/ron#400</a></li>
<li>Test for the array-Value roundtrip failure by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/404">ron-rs/ron#404</a></li>
<li>Fix <a href="https://redirect.github.com/ron-rs/ron/issues/277">#277</a> and <a href="https://redirect.github.com/ron-rs/ron/issues/405">#405</a> with <code>Value::Map</code> <code>IntoIter</code> and extraneous item check for <code>Value::Seq</code> by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/406">ron-rs/ron#406</a></li>
<li>Fixed raw struct name identifier parsing by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/402">ron-rs/ron#402</a></li>
<li>Implemented ron::value::RawValue by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/407">ron-rs/ron#407</a></li>
<li>Fix trailing comma parsing in tuples and Some by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/412">ron-rs/ron#412</a></li>
<li>Error instead of panic when deserializing non-identifier field name by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/415">ron-rs/ron#415</a></li>
<li>Add tests for extensions by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/417">ron-rs/ron#417</a></li>
<li>Add tests for raw value serialising by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/419">ron-rs/ron#419</a></li>
<li>Add explicit recursion limits to avoid stack overflows by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/420">ron-rs/ron#420</a></li>
<li>Fix <a href="https://redirect.github.com/ron-rs/ron/issues/423">#423</a> deserialising an identifier into a borrowed str by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/424">ron-rs/ron#424</a></li>
<li>Add <code>escape_strings</code> option to <code>PrettyConfig</code> by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/426">ron-rs/ron#426</a></li>
<li>Small fixes to codecov and rustdoc by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/427">ron-rs/ron#427</a></li>
<li>ci: add CIFuzz integration by <a href="https://github.com/DavidKorczynski"><code>@​DavidKorczynski</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/429">ron-rs/ron#429</a></li>
<li>Bump MSRV to 1.57.0 and base64 to 0.20 by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/431">ron-rs/ron#431</a></li>
<li>Bump base64 to v0.21 by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/433">ron-rs/ron#433</a></li>
<li>Update juntyr's author details by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/437">ron-rs/ron#437</a></li>
<li>Document nested block comments and add more intra docs links by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/440">ron-rs/ron#440</a></li>
<li>depend on <code>serde_derive</code> separately for more compilation parallelism by <a href="https://github.com/jakobhellermann"><code>@​jakobhellermann</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/441">ron-rs/ron#441</a></li>
<li>Add <code>compact_maps</code> and <code>compact_structs</code> options to <code>PrettyConfig</code> by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/448">ron-rs/ron#448</a></li>
<li>Add serde attributes limitations to README.md by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/450">ron-rs/ron#450</a></li>
<li>Add minimal support for flattening roundtrips through maps by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/455">ron-rs/ron#455</a></li>
<li>Upgrade to bitflags 2.0 by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/443">ron-rs/ron#443</a></li>
<li>Add test for <a href="https://redirect.github.com/ron-rs/ron/issues/456">#456</a> and fix bitflags glob import by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/457">ron-rs/ron#457</a></li>
<li>add <code>Map::retain</code> method by <a href="https://github.com/marcospb19"><code>@​marcospb19</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/460">ron-rs/ron#460</a></li>
<li>Remove Cargo.lock for fuzzing by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/461">ron-rs/ron#461</a></li>
<li>Install grcov with the latest dependencies by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/463">ron-rs/ron#463</a></li>
<li>Bump indexmap to 2.0 and update MSRV to 1.64.0 by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/459">ron-rs/ron#459</a></li>
<li>Add a fuzzer test that serialises and deserialises arbitrary typed serde data + fix <code>&amp;[u8]</code> de by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/462">ron-rs/ron#462</a></li>
<li>Protect against stack overflow in arbitrary fuzzer by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/464">ron-rs/ron#464</a></li>
<li>Add minimal support for internally tagged and untagged enums by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/451">ron-rs/ron#451</a></li>
<li>Fix &quot;WASD&quot; example in readme by <a href="https://github.com/tje"><code>@​tje</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/466">ron-rs/ron#466</a></li>
<li>Update option-set dev-dependency to 0.2 by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/468">ron-rs/ron#468</a></li>
<li>Update adjacent enum non-roundtrip tests to match <a href="https://redirect.github.com/serde-rs/serde/issues/2505">serde-rs/serde#2505</a> by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/471">ron-rs/ron#471</a></li>
<li>Update CHANGELOG to v0.8.1 by <a href="https://github.com/juntyr"><code>@​juntyr</code></a> in <a href="https://redirect.github.com/ron-rs/ron/pull/475">ron-rs/ron#475</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/ron-rs/ron/blob/master/CHANGELOG.md">ron's changelog</a>.</em></p>
<blockquote>
<h2>[0.10.1] - 2025-04-08</h2>
<h3>API Changes</h3>
<ul>
<li>Add <code>ron::Options::to_io_writer</code> and <code>ron::Options::to_io_writer_pretty</code> to allow writing into an <code>io::Writer</code> (<a href="https://redirect.github.com/ron-rs/ron/pull/561">#561</a>)</li>
<li>Breaking: <code>ron::value::Number</code> is now non-exhaustive, to avoid breaking <code>match</code>es when feature unification enables more of its variants than expected (<a href="https://redirect.github.com/ron-rs/ron/pull/564">#564</a>)</li>
</ul>
<h2>[0.9.0] - 2025-03-18</h2>
<h3>API Changes</h3>
<ul>
<li>Add <code>ron::value::RawValue</code> helper type which can (de)serialize any valid RON (<a href="https://redirect.github.com/ron-rs/ron/pull/407">#407</a>)</li>
<li>Add <code>escape_strings</code> option to <code>PrettyConfig</code> to allow serialising with or without escaping (<a href="https://redirect.github.com/ron-rs/ron/pull/426">#426</a>)</li>
<li>Add <code>compact_maps</code> and <code>compact_structs</code> options to <code>PrettyConfig</code> to allow serialising maps and structs on a single line (<a href="https://redirect.github.com/ron-rs/ron/pull/448">#448</a>)</li>
<li>Add minimal support for <code>#[serde(flatten)]</code> with roundtripping through RON maps (<a href="https://redirect.github.com/ron-rs/ron/pull/455">#455</a>)</li>
<li>Add minimal roundtripping support for <code>#[serde(tag = &quot;tag&quot;)]</code>, <code>#[serde(tag = &quot;tag&quot;, content = &quot;content&quot;)]</code>, and <code>#[serde(untagged)]</code> enums (<a href="https://redirect.github.com/ron-rs/ron/pull/451">#451</a>)</li>
<li>Breaking: Expand the <code>value::Number</code> enum to explicitly encode all possible number types (<a href="https://redirect.github.com/ron-rs/ron/pull/479">#479</a>)</li>
<li>Add <code>number_suffixes</code> option to <code>PrettyConfig</code> to allow serialising numbers with their explicit type suffix, e.g. <code>42i32</code> (<a href="https://redirect.github.com/ron-rs/ron/pull/481">#481</a>)</li>
<li>Allow <code>ron::value::RawValue</code> to capture any whitespace to the left and right of a ron value (<a href="https://redirect.github.com/ron-rs/ron/pull/487">#487</a>)</li>
<li>Breaking: Enforce that ron always writes valid UTF-8 (<a href="https://redirect.github.com/ron-rs/ron/pull/488">#488</a>)</li>
<li>Add convenient <code>Value::from</code> impls (<a href="https://redirect.github.com/ron-rs/ron/pull/498">#498</a>)</li>
<li>Add new extension <code>explicit_struct_names</code> which requires that struct names are included during deserialization (<a href="https://redirect.github.com/ron-rs/ron/pull/522">#522</a>)</li>
<li>Add new path-based field metadata serialization support via <code>PrettyConfig</code> (<a href="https://redirect.github.com/ron-rs/ron/pull/544">#544</a>)</li>
<li>Breaking: Change <code>PrettyConfig</code> so that <code>new_line</code>, <code>indentor</code> and <code>separator</code> are all <code>Cow&lt;'static, str&gt;</code> instead of <code>String</code> (<a href="https://redirect.github.com/ron-rs/ron/pull/546">#546</a>)</li>
</ul>
<h3>Format Changes</h3>
<ul>
<li>[Non-API] Breaking: Treat <code>Some</code> like a newtype variant with <code>unwrap_variant_newtypes</code> (<a href="https://redirect.github.com/ron-rs/ron/pull/465">#465</a>)</li>
<li>Allow parsing floating point literals with underscores (<a href="https://redirect.github.com/ron-rs/ron/pull/481">#481</a>)</li>
<li><strong>Format-Breaking:</strong> Switch from base64-encoded to Rusty byte strings, still allow base64 deserialising for now (<a href="https://redirect.github.com/ron-rs/ron/pull/438">#438</a>)</li>
<li>Fix issue <a href="https://redirect.github.com/ron-rs/ron/issues/241">#241</a> and allow parsing numbers with explicit type suffixes, e.g. <code>1u8</code> or <code>-1f32</code> (<a href="https://redirect.github.com/ron-rs/ron/pull/481">#481</a>)</li>
<li>Add support for byte literals as strongly typed unsigned 8-bit integers (<a href="https://redirect.github.com/ron-rs/ron/pull/438">#438</a>)</li>
<li>Fix issue <a href="https://redirect.github.com/ron-rs/ron/issues/321">#321</a> and allow parsing UTF-8 identifiers (<a href="https://redirect.github.com/ron-rs/ron/pull/488">#488</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>Fix parsing <code>r</code> as a self-describing struct or variant name (and not the start of a raw string) (<a href="https://redirect.github.com/ron-rs/ron/pull/465">#465</a>)</li>
<li>Fix serialising raw strings containing a literal backslash (<a href="https://redirect.github.com/ron-rs/ron/pull/465">#465</a>)</li>
<li>Fix serialising <code>None</code> inside a stack of nested <code>Option</code>s with <code>#![enable(implicit_some)]</code> enabled (<a href="https://redirect.github.com/ron-rs/ron/pull/465">#465</a>)</li>
<li>Fix deserialising deserialising <code>A('/')</code> into a <code>ron::Value</code> (<a href="https://redirect.github.com/ron-rs/ron/pull/465">#465</a>)</li>
<li>Fix issue <a href="https://redirect.github.com/ron-rs/ron/issues/445">#445</a> and allow parsing <code>+unsigned</code> as an unsigned int (<a href="https://redirect.github.com/ron-rs/ron/pull/479">#479</a>)</li>
<li>Fix serialising reserved identifiers <code>true</code>, <code>false</code>, <code>Some</code>, <code>None</code>, <code>inf</code>[<code>f32</code>|<code>f64</code>], and <code>Nan</code>[<code>f32</code>|<code>f64</code>] (<a href="https://redirect.github.com/ron-rs/ron/pull/487">#487</a>)</li>
<li>Disallow unclosed line comments at the end of <code>ron::value::RawValue</code> (<a href="https://redirect.github.com/ron-rs/ron/pull/489">#489</a>)</li>
<li>Fix parsing of struct/variant names starting in <code>None</code>, <code>Some</code>, <code>true</code>, or <code>false</code> (<a href="https://redirect.github.com/ron-rs/ron/pull/499">#499</a>)</li>
<li>Fix deserialising owned string field names in structs, allowing deserializing into <code>serde_json::Value</code>s (<a href="https://redirect.github.com/ron-rs/ron/pull/512">#511</a>)</li>
</ul>
<h3>Miscellaneous</h3>
<ul>
<li>Add CIFuzz GitHub action (<a href="https://redirect.github.com/ron-rs/ron/pull/429">#429</a>)</li>
<li>Update the arbitrary fuzzer to check arbitrary serde data types, values, and <code>ron::ser::PrettyConfig</code>s (<a href="https://redirect.github.com/ron-rs/ron/pull/465">#465</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/ron-rs/ron/commit/ce6b094b2f027fa83655cda80831b6515d5a882d"><code>ce6b094</code></a> Fix docs.rs build</li>
<li><a href="https://github.com/ron-rs/ron/commit/f721e25e19e232e169391a33ed085c3d756666c9"><code>f721e25</code></a> Fix clippy</li>
<li><a href="https://github.com/ron-rs/ron/commit/c2d30df046b4ee64ac67abccabc14d725221dee8"><code>c2d30df</code></a> Prepare v0.10.0 release</li>
<li><a href="https://github.com/ron-rs/ron/commit/677cf179d0bda66112e9dd86e9800959ccbe9aa0"><code>677cf17</code></a> List serde(rename) limitation to valid Rust identifiers</li>
<li><a href="https://github.com/ron-rs/ron/commit/b0955718b3e0b1733dbd3f27b97c40bc4235c7d0"><code>b095571</code></a> Make Number non-exhaustive (<a href="https://redirect.github.com/ron-rs/ron/issues/564">#564</a>)</li>
<li><a href="https://github.com/ron-rs/ron/commit/8350604b7ea2f120c46c3adf001275ed3a8595f8"><code>8350604</code></a> Allow writing to io::Writer (<a href="https://redirect.github.com/ron-rs/ron/issues/562">#562</a>)</li>
<li><a href="https://github.com/ron-rs/ron/commit/da87d1caf3d4193a0278c244a298373a80295810"><code>da87d1c</code></a> Prepare for v0.9.0 release (<a href="https://redirect.github.com/ron-rs/ron/issues/560">#560</a>)</li>
<li><a href="https://github.com/ron-rs/ron/commit/cf0e04d5871c3652950bfd3a8c6bb71a6c06c8d0"><code>cf0e04d</code></a> Add <code>flatten</code> support disclaimer (<a href="https://redirect.github.com/ron-rs/ron/issues/559">#559</a>)</li>
<li><a href="https://github.com/ron-rs/ron/commit/b7282547372b216d83e2055ae616243f5924ed6b"><code>b728254</code></a> Downgrade once_cell in CI for MSRV 1.64 (<a href="https://redirect.github.com/ron-rs/ron/issues/558">#558</a>)</li>
<li><a href="https://github.com/ron-rs/ron/commit/74d35d4b1b1dc56fdf70ce870c6e0faca8a74a98"><code>74d35d4</code></a> Bump to v0.9.0-alpha.1</li>
<li>Additional commits viewable in <a href="https://github.com/ron-rs/ron/compare/v0.8.1...v0.10.1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ron&package-manager=cargo&previous-version=0.8.1&new-version=0.10.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

jonasbb: @dependabot recreate

Patch:
diff --git a/Cargo.lock b/Cargo.lock
index 14405eb..40d8c6e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -46,12 +46,6 @@ version = "1.1.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
 
-[[package]]
-name = "base64"
-version = "0.21.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
-
 [[package]]
 name = "base64"
 version = "0.22.1"
@@ -574,7 +568,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "893d6229c7315763ca0df9b29ab7661ee419f286577a02847c5521b462e071af"
 dependencies = [
  "ahash",
- "base64 0.22.1",
+ "base64",
  "bytecount",
  "email_address",
  "fancy-regex",
@@ -873,14 +867,15 @@ dependencies = [
 
 [[package]]
 name = "ron"
-version = "0.8.1"
+version = "0.10.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b91f7eff05f748767f183df4320a63d6936e9c6107d97c9e6bdd9784f4289c94"
+checksum = "beceb6f7bf81c73e73aeef6dd1356d9a1b2b4909e1f0fc3e59b034f9572d7b7f"
 dependencies = [
- "base64 0.21.7",
+ "base64",
  "bitflags",
  "serde",
  "serde_derive",
+ "unicode-ident",
 ]
 
 [[package]]
@@ -1002,7 +997,7 @@ dependencies = [
 name = "serde_with"
 version = "3.12.0"
 dependencies = [
- "base64 0.22.1",
+ "base64",
  "chrono",
  "document-features",
  "expect-test",
diff --git a/serde_with/Cargo.toml b/serde_with/Cargo.toml
index 20af8b9..92e2c12 100644
--- a/serde_with/Cargo.toml
+++ b/serde_with/Cargo.toml
@@ -151,7 +151,7 @@ mime = "0.3.16"
 pretty_assertions = "1.4.0"
 regex = { version = "1.11.0", default-features = false, features = ["std"] }
 rmp-serde = "1.3.0"
-ron = "0.8"
+ron = "0.10"
 rustversion = "1.0.0"
 schemars_0_8 = { package = "schemars", version = "0.8.16" }
 serde = { version = "1.0.152", default-features = false, features = ["derive"] }
diff --git a/serde_with/src/lib.rs b/serde_with/src/lib.rs
index 6e2159a..c30096d 100644
--- a/serde_with/src/lib.rs
+++ b/serde_with/src/lib.rs
@@ -1551,15 +1551,14 @@ pub struct TimestampNanoSecondsWithFrac<
 ///     vec: vec![0x41, 0x61, 0x21],
 /// };
 /// let expected = r#"(
-///     array: "MDEyMzQ1Njc4OUFCQ0RF",
-///     boxed: "Li4u",
-///     cow: "Rm9vQmFy",
-///     cow_array: "KioqKioqKioqKioqKioq",
-///     vec: "QWEh",
+///     array: b"0123456789ABCDE",
+///     boxed: b"...",
+///     cow: b"FooBar",
+///     cow_array: b"***************",
+///     vec: b"Aa!",
 /// )"#;
 ///
-/// # let pretty_config = ron::ser::PrettyConfig::new()
-/// #     .new_line("\n".into());
+/// # let pretty_config = ron::ser::PrettyConfig::new().new_line("\n");
 /// assert_eq!(expected, ron::ser::to_string_pretty(&value, pretty_config).unwrap());
 /// assert_eq!(value, ron::from_str(expected).unwrap());
 /// # }
@@ -1590,12 +1589,11 @@ pub struct TimestampNanoSecondsWithFrac<
 ///     buf: &[20u8, 21u8, 22u8],
 /// };
 /// let expected = r#"(
-///     array_buf: "CgoKCgoKCgoKCgoKCgoK",
-///     buf: "FBUW",
+///     array_buf: b"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
+///     buf: b"\x14\x15\x16",
 /// )"#;
 ///
-/// # let pretty_config = ron::ser::PrettyConfig::new()
-/// #     .new_line("\n".into());
+/// # let pretty_config = ron::ser::PrettyConfig::new().new_line("\n");
 /// assert_eq!(expected, ron::ser::to_string_pretty(&value, pretty_config).unwrap());
 /// // RON doesn't support borrowed deserialization of byte arrays
 /// # }
diff --git a/serde_with/src/rust.rs b/serde_with/src/rust.rs
index 526a8a7..f1b82b2 100644
--- a/serde_with/src/rust.rs
+++ b/serde_with/src/rust.rs
@@ -115,8 +115,7 @@ pub mod double_option {
 /// }
 ///
 /// // Transparently add/remove Some() wrapper
-/// # let pretty_config = ron::ser::PrettyConfig::new()
-/// #     .new_line("\n".into());
+/// # let pretty_config = ron::ser::PrettyConfig::new().new_line("\n");
 /// let s = r#"(
 ///     mandatory: 1,
 ///     optional: 2,
@@ -130,8 +129,7 @@ pub mod double_option {
 ///
 /// // Missing values are deserialized as `None`
 /// // while `None` values are skipped during serialization.
-/// # let pretty_config = ron::ser::PrettyConfig::new()
-/// #     .new_line("\n".into());
+/// # let pretty_config = ron::ser::PrettyConfig::new().new_line("\n");
 /// let s = r#"(
 ///     mandatory: 1,
 /// )"#;


Test patch:
diff --git a/serde_with/tests/serde_as/enum_map.rs b/serde_with/tests/serde_as/enum_map.rs
index 65ece6f..e9ff70f 100644
--- a/serde_with/tests/serde_as/enum_map.rs
+++ b/serde_with/tests/serde_as/enum_map.rs
@@ -105,7 +105,7 @@ fn ron_serialize() {
         ],
     };
 
-    let pretty_config = ron::ser::PrettyConfig::new().new_line("\n".into());
+    let pretty_config = ron::ser::PrettyConfig::new().new_line("\n");
     let ron = ron::ser::to_string_pretty(&values, pretty_config).unwrap();
     expect_test::expect![[r#"
             (
@@ -127,78 +127,78 @@ fn ron_serialize() {
     // TODO deserializing a Strings as an Identifier seems unsupported
     let deser_values: ron::Value = ron::de::from_str(&ron).unwrap();
     expect_test::expect![[r#"
+        Map(
             Map(
-                Map(
-                    {
-                        String(
-                            "vec",
-                        ): Map(
-                            Map(
-                                {
-                                    String(
-                                        "Int",
-                                    ): Number(
-                                        Integer(
-                                            456,
-                                        ),
-                                    ),
-                                    String(
-                                        "String",
-                                    ): String(
-                                        "XXX",
+                {
+                    String(
+                        "vec",
+                    ): Map(
+                        Map(
+                            {
+                                String(
+                                    "Int",
+                                ): Number(
+                                    U16(
+                                        456,
                                     ),
-                                    String(
-                                        "Struct",
-                                    ): Map(
-                                        Map(
-                                            {
-                                                String(
-                                                    "a",
-                                                ): Number(
-                                                    Integer(
-                                                        666,
-                                                    ),
-                                                ),
-                                                String(
-                                                    "b",
-                                                ): String(
-                                                    "BBB",
-                                                ),
-                                                String(
-                                                    "c",
-                                                ): Bool(
-                                                    true,
-                                                ),
-                                            },
-                                        ),
-                                    ),
-                                    String(
-                                        "Tuple",
-                                    ): Seq(
-                                        [
-                                            Number(
-                                                Integer(
-                                                    1,
+                                ),
+                                String(
+                                    "String",
+                                ): String(
+                                    "XXX",
+                                ),
+                                String(
+                                    "Struct",
+                                ): Map(
+                                    Map(
+                                        {
+                                            String(
+                                                "a",
+                                            ): Number(
+                                                U16(
+                                                    666,
                                                 ),
                                             ),
                                             String(
-                                                "Middle",
+                                                "b",
+                                            ): String(
+                                                "BBB",
                                             ),
-                                            Bool(
-                                                false,
+                                            String(
+                                                "c",
+                                            ): Bool(
+                                                true,
                                             ),
-                                        ],
+                                        },
                                     ),
-                                    String(
-                                        "Unit",
-                                    ): Unit,
-                                },
-                            ),
+                                ),
+                                String(
+                                    "Tuple",
+                                ): Seq(
+                                    [
+                                        Number(
+                                            U8(
+                                                1,
+                                            ),
+                                        ),
+                                        String(
+                                            "Middle",
+                                        ),
+                                        Bool(
+                                            false,
+                                        ),
+                                    ],
+                                ),
+                                String(
+                                    "Unit",
+                                ): Unit,
+                            },
                         ),
-                    },
-                ),
-            )
-        "#]]
+                    ),
+                },
+            ),
+        )
+    "#]]
     .assert_debug_eq(&deser_values);
 }