drive-by clippy fixes

This commit is contained in:
Olivier 'reivilibre
2025-10-20 13:48:49 +01:00
parent 4e70f83f41
commit 1fc8145e01
2 changed files with 4 additions and 10 deletions
+2 -5
View File
@@ -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)]
+2 -5
View File
@@ -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.