mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-24 22:47:58 +00:00
Use slicing syntax instead of .as_slice()
This commit is contained in:
@@ -402,7 +402,7 @@ fn deserialize_struct_from_map(
|
||||
) -> P<ast::Expr> {
|
||||
let fields = match *fields {
|
||||
Unnamed(_) => fail!(),
|
||||
Named(ref fields) => fields.as_slice(),
|
||||
Named(ref fields) => &fields[],
|
||||
};
|
||||
|
||||
// Declare each field.
|
||||
|
||||
Reference in New Issue
Block a user