Use slicing syntax instead of .as_slice()

This commit is contained in:
Thomas Bahn committed 2015-02-06 22:23:16 +01:00
1 parent 3022d7301a
commit 5dd077969c
13 files changed
+45 -45

No files matched your search

+1 -1
View File
@@ -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.