From 5de69f72769be320262f14ab1d1306a3281bfd22 Mon Sep 17 00:00:00 2001 From: Systemcluster Date: Sun, 14 Feb 2021 12:21:33 +0100 Subject: [PATCH] Specify line endings in ron snapshot tests --- tests/snapshots.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/snapshots.rs b/tests/snapshots.rs index 8fae779a66..f66fd8b8d6 100644 --- a/tests/snapshots.rs +++ b/tests/snapshots.rs @@ -226,7 +226,7 @@ fn convert_spv(name: &str) { #[cfg(feature = "serialize")] { - let config = ron::ser::PrettyConfig::default(); + let config = ron::ser::PrettyConfig::default().with_new_line("\n".to_string()); let output = ron::ser::to_string_pretty(&module, config).unwrap(); with_snapshot_settings(|| { insta::assert_snapshot!(format!("{}.ron", name), output);