Minor type fixes
This commit is contained in:
parent
02ba438f76
commit
a316b8bcbb
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue