Skip to content

Commit

Permalink
Merge pull request #433 from bulwark-security/fix-clippy-warnings-eli…
Browse files Browse the repository at this point in the history
…ded-lifetime

Plugin lifetime was elided, fixes clippy warning.
  • Loading branch information
sporkmonger authored Dec 28, 2024
2 parents 4258af8 + 4c460ec commit bd04c07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/config/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ impl Preset {
pub fn resolve_plugins<'a>(
&'a self,
config: &'a Config,
) -> Result<Vec<&Plugin>, ResolutionError> {
) -> Result<Vec<&'a Plugin>, ResolutionError> {
let mut resolved_presets = HashSet::new();
self.resolve_plugins_recursive(config, &mut resolved_presets)
}
Expand All @@ -412,7 +412,7 @@ impl Preset {
&'a self,
config: &'a Config,
resolved_presets: &mut HashSet<String>,
) -> Result<Vec<&Plugin>, ResolutionError> {
) -> Result<Vec<&'a Plugin>, ResolutionError> {
let mut plugins: HashMap<String, &Plugin> = HashMap::with_capacity(self.plugins.len());
for reference in &self.plugins {
match reference {
Expand Down Expand Up @@ -509,7 +509,7 @@ impl Resource {
pub fn resolve_plugins<'a>(
&'a self,
config: &'a Config,
) -> Result<Vec<&Plugin>, ResolutionError> {
) -> Result<Vec<&'a Plugin>, ResolutionError> {
let mut plugins: Vec<&Plugin> = Vec::with_capacity(self.plugins.len());
for reference in &self.plugins {
match reference {
Expand Down

0 comments on commit bd04c07

Please sign in to comment.