style: apply rustfmt after rebase
This commit is contained in:
parent
b1ebd4b579
commit
268a1dee09
4 changed files with 15 additions and 8 deletions
|
|
@ -13,7 +13,9 @@ const QQ_AUTH_URL: &str = "https://bots.qq.com/app/getAppAccessToken";
|
|||
|
||||
fn ensure_https(url: &str) -> anyhow::Result<()> {
|
||||
if !url.starts_with("https://") {
|
||||
anyhow::bail!("Refusing to transmit sensitive data over non-HTTPS URL: URL scheme must be https");
|
||||
anyhow::bail!(
|
||||
"Refusing to transmit sensitive data over non-HTTPS URL: URL scheme must be https"
|
||||
);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,9 @@ use uuid::Uuid;
|
|||
/// happens in the gateway when Meta sends webhook events.
|
||||
fn ensure_https(url: &str) -> anyhow::Result<()> {
|
||||
if !url.starts_with("https://") {
|
||||
anyhow::bail!("Refusing to transmit sensitive data over non-HTTPS URL: URL scheme must be https");
|
||||
anyhow::bail!(
|
||||
"Refusing to transmit sensitive data over non-HTTPS URL: URL scheme must be https"
|
||||
);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue