You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-31 09:24:31 +03:00
Fix recently added Clippy lints
This also ignores the clippy::blocks_in_conditions lint in two crates, until tracing gets fixed: https://github.com/tokio-rs/tracing/issues/2876
This commit is contained in:
@ -37,7 +37,7 @@ pub enum EmailSmtpMode {
|
||||
/// Plain text
|
||||
Plain,
|
||||
|
||||
/// StartTLS (starts as plain text then upgrade to TLS)
|
||||
/// `StartTLS` (starts as plain text then upgrade to TLS)
|
||||
StartTls,
|
||||
|
||||
/// TLS
|
||||
@ -94,7 +94,7 @@ pub struct EmailConfig {
|
||||
hostname: Option<String>,
|
||||
|
||||
/// SMTP transport: Port to connect to. Default is 25 for plain, 465 for TLS
|
||||
/// and 587 for StartTLS
|
||||
/// and 587 for `StartTLS`
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[schemars(range(min = 1, max = 65535))]
|
||||
port: Option<NonZeroU16>,
|
||||
|
@ -336,7 +336,7 @@ pub struct ListenerConfig {
|
||||
/// List of sockets to bind
|
||||
pub binds: Vec<BindConfig>,
|
||||
|
||||
/// Accept HAProxy's Proxy Protocol V1
|
||||
/// Accept `HAProxy`'s Proxy Protocol V1
|
||||
#[serde(default)]
|
||||
pub proxy_protocol: bool,
|
||||
|
||||
|
Reference in New Issue
Block a user