1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-07 17:03:01 +03:00

Upgrade clippy lints to 1.74.0 & fix warnings

This commit is contained in:
Quentin Gliech
2023-12-01 10:50:17 +01:00
parent 5b272dff08
commit df3ca5ae66
13 changed files with 147 additions and 114 deletions

View File

@@ -200,13 +200,13 @@ impl UrlBuilder {
#[cfg(test)]
mod tests {
#[test]
#[should_panic]
#[should_panic(expected = "base URL must be HTTP/HTTPS")]
fn test_invalid_base_url_scheme() {
let _ = super::UrlBuilder::new(url::Url::parse("file:///tmp/").unwrap(), None, None);
}
#[test]
#[should_panic]
#[should_panic(expected = "base URL must not contain a query")]
fn test_invalid_base_url_query() {
let _ = super::UrlBuilder::new(
url::Url::parse("https://example.com/?foo=bar").unwrap(),
@@ -216,7 +216,7 @@ mod tests {
}
#[test]
#[should_panic]
#[should_panic(expected = "base URL must not contain a fragment")]
fn test_invalid_base_url_fragment() {
let _ = super::UrlBuilder::new(
url::Url::parse("https://example.com/#foo").unwrap(),
@@ -226,7 +226,7 @@ mod tests {
}
#[test]
#[should_panic]
#[should_panic(expected = "base URL must not contain credentials")]
fn test_invalid_base_url_credentials() {
let _ = super::UrlBuilder::new(
url::Url::parse("https://foo@example.com/").unwrap(),