Minor type fixes
This commit is contained in:
parent
02ba438f76
commit
a316b8bcbb
|
@ -27,7 +27,7 @@ fn test_parse_tag() {
|
||||||
tag,
|
tag,
|
||||||
ParsedTag {
|
ParsedTag {
|
||||||
attributes: {
|
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"type".to_vec(), val(b"password"));
|
||||||
map.insert(b"\"a\"".to_vec(), val(b" b "));
|
map.insert(b"\"a\"".to_vec(), val(b" b "));
|
||||||
map.insert(b":cd".to_vec(), val(b""));
|
map.insert(b":cd".to_vec(), val(b""));
|
||||||
|
@ -57,7 +57,7 @@ fn test_parse_element() {
|
||||||
elem,
|
elem,
|
||||||
NodeData::Element {
|
NodeData::Element {
|
||||||
attributes: {
|
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.insert(b"b".to_vec(), val(br#"\"c\""#));
|
||||||
map
|
map
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue