mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-05-26 05:24:34 +00:00
drive-by clippy fixes
This commit is contained in:
@@ -36,7 +36,9 @@ pub struct Transport {
|
||||
inner: Arc<TransportInner>,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
enum TransportInner {
|
||||
#[default]
|
||||
Blackhole,
|
||||
Smtp(AsyncSmtpTransport<Tokio1Executor>),
|
||||
Sendmail(AsyncSendmailTransport<Tokio1Executor>),
|
||||
@@ -113,11 +115,6 @@ impl Transport {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for TransportInner {
|
||||
fn default() -> Self {
|
||||
Self::Blackhole
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
#[error(transparent)]
|
||||
|
||||
@@ -86,11 +86,13 @@ impl core::str::FromStr for ResponseMode {
|
||||
Debug, Hash, PartialEq, Eq, PartialOrd, Ord, Clone, SerializeDisplay, DeserializeFromStr,
|
||||
)]
|
||||
#[non_exhaustive]
|
||||
#[derive(Default)]
|
||||
pub enum Display {
|
||||
/// The Authorization Server should display the authentication and consent
|
||||
/// UI consistent with a full User Agent page view.
|
||||
///
|
||||
/// This is the default display mode.
|
||||
#[default]
|
||||
Page,
|
||||
|
||||
/// The Authorization Server should display the authentication and consent
|
||||
@@ -135,11 +137,6 @@ impl core::str::FromStr for Display {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Display {
|
||||
fn default() -> Self {
|
||||
Self::Page
|
||||
}
|
||||
}
|
||||
|
||||
/// Value that specifies whether the Authorization Server prompts the End-User
|
||||
/// for reauthentication and consent.
|
||||
|
||||
Reference in New Issue
Block a user