Skip to content

Commit

Permalink
clippy: derive s3 endpoint default
Browse files Browse the repository at this point in the history
  • Loading branch information
jaemk committed Jun 3, 2023
1 parent e336802 commit 333be83
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/backends/s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,15 @@ const MAX_KEYS: u8 = 100;
///
/// Currently S3, GCS, and DigitalOcean Spaces supported.
#[allow(clippy::upper_case_acronyms)]
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy, Debug, Default)]
pub enum EndPoint {
#[default]
S3,
S3DualStack,
GCS,
DigitalOceanSpaces,
}

impl Default for EndPoint {
fn default() -> Self {
EndPoint::S3
}
}

/// `ReleaseList` Builder
#[derive(Clone, Debug)]
pub struct ReleaseListBuilder {
Expand Down

0 comments on commit 333be83

Please sign in to comment.