This repository was archived by the owner on Mar 25, 2024. It is now read-only.
Repository navigation
Commit 52de1e0
committed
Fix Serializer example code on rustc pre-1.47
error[E0277]: arrays only have std trait implementations for lengths 0..=32
--> src/ser.rs:30:5
|
18 | assert_eq!(buffer, b"---\nk: 107\n...\n---\nj: 106\nk: 107\n");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::array::LengthAtMost32` is not implemented for `[u8; 33]`
|
= note: required because of the requirements on the impl of `std::cmp::PartialEq<&[u8; 33]>` for `std::vec::Vec<u8>`
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)1 parent 5b91abf commit 52de1e0
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments