mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-24 20:55:01 +00:00
Use slicing syntax instead of .as_slice()
This commit is contained in:
1 parent
3022d7301a
commit
5dd077969c
13 files changed
+45
-45
No files matched your search
@@ -293,7 +293,7 @@ fn deserialize_struct(
|
||||
|
||||
let fields = match *fields {
|
||||
Unnamed(_) => panic!(),
|
||||
Named(ref fields) => fields.as_slice(),
|
||||
Named(ref fields) => &fields[],
|
||||
};
|
||||
|
||||
// Convert each field into a unique ident.
|
||||
|
||||
Reference in new issue
Block a user