Upgrade yap to 0.10.0

This commit is contained in:
Jonas Platte 2023-05-24 09:58:19 +02:00
parent 12537c19ac
commit 486ecc2b68
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ rustdoc-args = ["--cfg", "docsrs"]
headers = "0.3"
ruma-common = { workspace = true }
tracing = { workspace = true }
yap = "0.8.0"
yap = "0.10.0"
[dev-dependencies]
tracing-subscriber = "0.3.16"

View File

@ -136,7 +136,7 @@ fn parse_xmatrix_field<'a>(tokens: &mut impl Tokens<Item = &'a u8>) -> Option<(S
fn parse_xmatrix<'a>(tokens: &mut impl Tokens<Item = &'a u8>) -> Option<XMatrix> {
tokens.optional(|t| {
if !t.tokens(b"X-Matrix ".into_tokens()) {
if !t.tokens(b"X-Matrix ") {
debug!("Failed to parse X-Matrix credentials, didn't start with 'X-Matrix '");
return None;
}