From f2b4c330d787c5e2316f9b210c53c9f15835aa43 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 31 Jan 2024 00:17:15 +0100 Subject: [PATCH] nested: fix compiling tests with Rust < 1.74 --- nested/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nested/src/lib.rs b/nested/src/lib.rs index 0e941834..a881e860 100644 --- a/nested/src/lib.rs +++ b/nested/src/lib.rs @@ -1747,7 +1747,7 @@ mod tests { #[cfg(feature = "alloc")] fn stream_binary_owned() { assert_eq!( - Value::Binary(Cow::Owned(b"owned".into())), + Value::Binary(Cow::Owned(b"owned".to_vec())), ToValue::default() .value_ref(&{ struct Binary;