diff --git a/gstreamer/Cargo.toml b/gstreamer/Cargo.toml index f15d5f1d7..dca92da9c 100644 --- a/gstreamer/Cargo.toml +++ b/gstreamer/Cargo.toml @@ -34,7 +34,7 @@ pretty-hex = "0.2" thiserror = "1" [dev-dependencies] -ron = "0.6" +ron = "0.7" serde_json = "1.0" futures-executor = "0.3.1" diff --git a/gstreamer/src/buffer_serde.rs b/gstreamer/src/buffer_serde.rs index 1f69a6241..bef430a52 100644 --- a/gstreamer/src/buffer_serde.rs +++ b/gstreamer/src/buffer_serde.rs @@ -93,7 +93,7 @@ mod tests { buffer.set_flags(BufferFlags::LIVE | BufferFlags::DISCONT); } - let pretty_config = ron::ser::PrettyConfig::new().with_new_line("".to_string()); + let pretty_config = ron::ser::PrettyConfig::new().new_line("".to_string()); let res = ron::ser::to_string_pretty(&buffer, pretty_config); assert_eq!( diff --git a/gstreamer/src/bufferlist_serde.rs b/gstreamer/src/bufferlist_serde.rs index f1f648c5a..d327e11ce 100644 --- a/gstreamer/src/bufferlist_serde.rs +++ b/gstreamer/src/bufferlist_serde.rs @@ -95,7 +95,7 @@ mod tests { buffer_list.add(buffer); } - let pretty_config = ron::ser::PrettyConfig::new().with_new_line("".to_string()); + let pretty_config = ron::ser::PrettyConfig::new().new_line("".to_string()); let res = ron::ser::to_string_pretty(&buffer_list, pretty_config); assert_eq!( diff --git a/gstreamer/src/caps_serde.rs b/gstreamer/src/caps_serde.rs index c90e81fbd..1f3fb1c99 100644 --- a/gstreamer/src/caps_serde.rs +++ b/gstreamer/src/caps_serde.rs @@ -240,7 +240,7 @@ mod tests { .field("array", Array::new(&[&1, &2])) .build(); - let pretty_config = ron::ser::PrettyConfig::new().with_new_line("".to_string()); + let pretty_config = ron::ser::PrettyConfig::new().new_line("".to_string()); let res = ron::ser::to_string_pretty(&caps, pretty_config); assert_eq!( @@ -271,7 +271,7 @@ mod tests { .features(&["foo:bar", "foo:baz"]) .build(); - let pretty_config = ron::ser::PrettyConfig::new().with_new_line("".to_string()); + let pretty_config = ron::ser::PrettyConfig::new().new_line("".to_string()); let res = ron::ser::to_string_pretty(&caps, pretty_config); assert_eq!( @@ -305,7 +305,7 @@ mod tests { .any_features() .build(); - let pretty_config = ron::ser::PrettyConfig::new().with_new_line("".to_string()); + let pretty_config = ron::ser::PrettyConfig::new().new_line("".to_string()); let res = ron::ser::to_string_pretty(&caps, pretty_config.clone()); assert_eq!( diff --git a/gstreamer/src/clock_time_serde.rs b/gstreamer/src/clock_time_serde.rs index deba671f9..4f83d7b8d 100644 --- a/gstreamer/src/clock_time_serde.rs +++ b/gstreamer/src/clock_time_serde.rs @@ -29,7 +29,7 @@ mod tests { // Some let clocktime = Some(ClockTime::from_nseconds(42_123_456_789)); - let pretty_config = ron::ser::PrettyConfig::new().with_new_line("".to_string()); + let pretty_config = ron::ser::PrettyConfig::new().new_line("".to_string()); let res = ron::ser::to_string_pretty(&clocktime, pretty_config.clone()); assert_eq!(Ok("Some(42123456789)".to_owned()), res); diff --git a/gstreamer/src/date_time_serde.rs b/gstreamer/src/date_time_serde.rs index 470a4ed2c..2af098aa6 100644 --- a/gstreamer/src/date_time_serde.rs +++ b/gstreamer/src/date_time_serde.rs @@ -179,7 +179,7 @@ mod tests { fn test_serialize() { crate::init().unwrap(); - let pretty_config = ron::ser::PrettyConfig::new().with_new_line("".to_string()); + let pretty_config = ron::ser::PrettyConfig::new().new_line("".to_string()); let datetime = DateTime::new(2f32, 2018, 5, 28, 16, 6, 42.123_456f64).unwrap(); let res = ron::ser::to_string_pretty(&datetime, pretty_config.clone()); diff --git a/gstreamer/src/format_serde.rs b/gstreamer/src/format_serde.rs index 8c34f327b..2b89d2b13 100644 --- a/gstreamer/src/format_serde.rs +++ b/gstreamer/src/format_serde.rs @@ -67,7 +67,7 @@ mod tests { fn test_serialize() { crate::init().unwrap(); - let pretty_config = ron::ser::PrettyConfig::new().with_new_line("".to_string()); + let pretty_config = ron::ser::PrettyConfig::new().new_line("".to_string()); let value = GenericFormattedValue::from(Undefined(42)); let res = ron::ser::to_string_pretty(&value, pretty_config.clone()); diff --git a/gstreamer/src/sample_serde.rs b/gstreamer/src/sample_serde.rs index 440174202..c09c3e677 100644 --- a/gstreamer/src/sample_serde.rs +++ b/gstreamer/src/sample_serde.rs @@ -90,7 +90,7 @@ mod tests { fn test_serialize() { crate::init().unwrap(); - let pretty_config = ron::ser::PrettyConfig::new().with_new_line("".to_string()); + let pretty_config = ron::ser::PrettyConfig::new().new_line("".to_string()); let sample = { let mut buffer = Buffer::from_slice(vec![1, 2, 3, 4]); diff --git a/gstreamer/src/segment_serde.rs b/gstreamer/src/segment_serde.rs index a37e65f46..88a5eae4d 100644 --- a/gstreamer/src/segment_serde.rs +++ b/gstreamer/src/segment_serde.rs @@ -132,7 +132,7 @@ mod tests { segment.set_position(GenericFormattedValue::from(ClockTime::from_nseconds(256))); segment.set_duration(GenericFormattedValue::from(ClockTime::NONE)); - let pretty_config = ron::ser::PrettyConfig::new().with_new_line("".to_string()); + let pretty_config = ron::ser::PrettyConfig::new().new_line("".to_string()); let res = ron::ser::to_string_pretty(&segment, pretty_config); assert_eq!( diff --git a/gstreamer/src/structure_serde.rs b/gstreamer/src/structure_serde.rs index 9c3d399c5..092ba2e8d 100644 --- a/gstreamer/src/structure_serde.rs +++ b/gstreamer/src/structure_serde.rs @@ -188,7 +188,7 @@ mod tests { .field("array", &Array::new(&[&1, &2])) .build(); - let pretty_config = ron::ser::PrettyConfig::new().with_new_line("".to_string()); + let pretty_config = ron::ser::PrettyConfig::new().new_line("".to_string()); let res = ron::ser::to_string_pretty(&s, pretty_config); assert_eq!( diff --git a/gstreamer/src/tags_serde.rs b/gstreamer/src/tags_serde.rs index f8c79dead..627cf668b 100644 --- a/gstreamer/src/tags_serde.rs +++ b/gstreamer/src/tags_serde.rs @@ -352,7 +352,7 @@ mod tests { tags.add::(&sample, TagMergeMode::Append); // Sample } - let pretty_config = ron::ser::PrettyConfig::new().with_new_line("".to_string()); + let pretty_config = ron::ser::PrettyConfig::new().new_line("".to_string()); let res = ron::ser::to_string_pretty(&tags, pretty_config); assert_eq!( diff --git a/gstreamer/src/toc_serde.rs b/gstreamer/src/toc_serde.rs index e6d38b3f1..9d497ec9f 100644 --- a/gstreamer/src/toc_serde.rs +++ b/gstreamer/src/toc_serde.rs @@ -191,7 +191,7 @@ mod tests { toc.append_entry(toc_edition); } - let pretty_config = ron::ser::PrettyConfig::new().with_new_line("".to_string()); + let pretty_config = ron::ser::PrettyConfig::new().new_line("".to_string()); let res = ron::ser::to_string_pretty(&toc, pretty_config); assert_eq!( diff --git a/gstreamer/src/value_serde.rs b/gstreamer/src/value_serde.rs index 54d34a37f..22348ec79 100644 --- a/gstreamer/src/value_serde.rs +++ b/gstreamer/src/value_serde.rs @@ -301,7 +301,7 @@ mod tests { fn test_serialize_simple() { crate::init().unwrap(); - let pretty_config = ron::ser::PrettyConfig::new().with_new_line("".to_string()); + let pretty_config = ron::ser::PrettyConfig::new().new_line("".to_string()); // Fraction let fraction = Fraction::new(1, 3); @@ -343,7 +343,7 @@ mod tests { fn test_serialize_collections() { crate::init().unwrap(); - let pretty_config = ron::ser::PrettyConfig::new().with_new_line("".to_string()); + let pretty_config = ron::ser::PrettyConfig::new().new_line("".to_string()); // Array let value_13 = Fraction::new(1, 3);