mirror of
https://github.com/aljazceru/pubky-core.git
synced 2025-12-31 21:04:34 +01:00
chore: clippy
This commit is contained in:
@@ -158,16 +158,13 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_is_secure() {
|
||||
assert_eq!(is_secure(""), false);
|
||||
assert_eq!(is_secure("127.0.0.1"), false);
|
||||
assert_eq!(is_secure("167.86.102.121"), false);
|
||||
assert_eq!(
|
||||
is_secure("[2001:0db8:0000:0000:0000:ff00:0042:8329]"),
|
||||
false
|
||||
);
|
||||
assert_eq!(is_secure("localhost"), false);
|
||||
assert_eq!(is_secure("localhost:23423"), false);
|
||||
assert_eq!(is_secure(&Keypair::random().public_key().to_string()), true);
|
||||
assert_eq!(is_secure("example.com"), true);
|
||||
assert!(!is_secure(""));
|
||||
assert!(!is_secure("127.0.0.1"));
|
||||
assert!(!is_secure("167.86.102.121"));
|
||||
assert!(!is_secure("[2001:0db8:0000:0000:0000:ff00:0042:8329]"));
|
||||
assert!(!is_secure("localhost"));
|
||||
assert!(!is_secure("localhost:23423"));
|
||||
assert!(is_secure(&Keypair::random().public_key().to_string()));
|
||||
assert!(is_secure("example.com"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -800,10 +800,7 @@ mod tests {
|
||||
let feed_url = format!("http://localhost:{}/events/", homeserver.port());
|
||||
|
||||
let response = client
|
||||
.request(
|
||||
Method::GET,
|
||||
format!("{feed_url}").as_str().try_into().unwrap(),
|
||||
)
|
||||
.request(Method::GET, feed_url.as_str().try_into().unwrap())
|
||||
.send()
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
Reference in New Issue
Block a user