mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-23 12:16:23 +00:00
Fix: Use &[T] instead of &Vec<T>
This commit is contained in:
1 parent
3c7dd6fc1e
commit
df4ad5884d
2 files changed
+2
-2
No files matched your search
@@ -710,7 +710,7 @@ fn serialize_adjacently_tagged_variant(
|
||||
});
|
||||
|
||||
let fields_ty = variant.fields.iter().map(|f| &f.ty);
|
||||
let fields_ident: &Vec<_> = &match variant.style {
|
||||
let fields_ident: &[_] = &match variant.style {
|
||||
Style::Unit => {
|
||||
if variant.attrs.serialize_with().is_some() {
|
||||
vec![]
|
||||
|
||||
Reference in new issue
Block a user