Fix builds.

This commit is contained in:
Stephen Chung
2022-01-01 17:38:32 +08:00
parent 135b1f54c2
commit a6ddb64596
5 changed files with 6 additions and 6 deletions

View File

@@ -2623,7 +2623,7 @@ fn parse_export(
pos: id_pos,
},
Ident {
name: state.get_identifier("", rename.as_ref().map_or("", |s| s.as_ref())),
name: state.get_identifier("", rename.as_ref().map_or("", <_>::as_ref)),
pos: rename_pos,
},
));