Skip to content

Commit

Permalink
chore: remove an unused member from HardcodedContainerCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw committed Oct 27, 2024
1 parent b80d74b commit 893e71f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/audit/hardcoded_container_credentials.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ use crate::{
state::AuditState,
};

pub(crate) struct HardcodedContainerCredentials {
pub(crate) _state: AuditState,
}
pub(crate) struct HardcodedContainerCredentials {}

impl WorkflowAudit for HardcodedContainerCredentials {
fn ident() -> &'static str
Expand All @@ -33,11 +31,11 @@ impl WorkflowAudit for HardcodedContainerCredentials {
"hardcoded credential in GitHub Actions container configurations"
}

fn new(state: AuditState) -> anyhow::Result<Self>
fn new(_state: AuditState) -> anyhow::Result<Self>
where
Self: Sized,
{
Ok(Self { _state: state })
Ok(Self {})
}

fn audit<'w>(
Expand Down

0 comments on commit 893e71f

Please sign in to comment.