svcb: fix build error

when running tests:
```
error[E0277]: the trait bound `Vec<u8>: From<&[u8; 5]>` is not satisfied
```
This commit is contained in:
2024-04-29 14:33:39 +00:00
parent 6e4af5c549
commit f6b7fc1287

View File

@@ -511,7 +511,7 @@ mod tests {
priority: 1,
params: vec![(
SvcParamKey::Key(667),
SvcParamValue::Unknown(Unknown(b"hello".into())),
SvcParamValue::Unknown(Unknown((*b"hello").into())),
)],
},
// Figure 6: A Generic Key and Quoted Value with a Decimal Escape
@@ -522,7 +522,7 @@ mod tests {
priority: 1,
params: vec![(
SvcParamKey::Key(667),
SvcParamValue::Unknown(Unknown(b"hello\\210qoo".into())),
SvcParamValue::Unknown(Unknown((*b"hello\\210qoo").into())),
)],
},
// Figure 7: Two Quoted IPv6 Hints