Minor type fixes

This commit is contained in:
Wilson Lin 2023-01-05 12:37:40 +11:00
parent 02ba438f76
commit a316b8bcbb
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ fn test_parse_tag() {
tag,
ParsedTag {
attributes: {
let mut map = FxHashMap::<Vec<u8>, AttrVal>::new();
let mut map = FxHashMap::<Vec<u8>, AttrVal>::default();
map.insert(b"type".to_vec(), val(b"password"));
map.insert(b"\"a\"".to_vec(), val(b" b "));
map.insert(b":cd".to_vec(), val(b""));
@ -57,7 +57,7 @@ fn test_parse_element() {
elem,
NodeData::Element {
attributes: {
let mut map = FxHashMap::<Vec<u8>, AttrVal>::new();
let mut map = FxHashMap::<Vec<u8>, AttrVal>::default();
map.insert(b"b".to_vec(), val(br#"\"c\""#));
map
},