mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-27 12:17:56 +00:00
Use slicing syntax instead of .as_slice()
This commit is contained in:
@@ -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