mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-22 16:16:37 +00:00
gstreamer: Update ron dev-dependency to 0.7
This commit is contained in:
parent
4579fb006b
commit
cc76442601
13 changed files with 16 additions and 16 deletions
|
@ -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"
|
||||
|
||||
|
|
|
@ -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!(
|
||||
|
|
|
@ -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!(
|
||||
|
|
|
@ -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!(
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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]);
|
||||
|
|
|
@ -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!(
|
||||
|
|
|
@ -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!(
|
||||
|
|
|
@ -352,7 +352,7 @@ mod tests {
|
|||
tags.add::<Image>(&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!(
|
||||
|
|
|
@ -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!(
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue