Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
banditopazzo committed Jun 18, 2024
1 parent b0ffae0 commit c1bc87b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/pulsar-core/src/pdk/module_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub struct ModuleContext {

impl ModuleContext {
/// Constructs a new [ModuleContext]`
#[allow(clippy::too_many_arguments)]
pub fn new(
bus: Bus,
module_name: ModuleName,
Expand Down
2 changes: 1 addition & 1 deletion examples/pulsar-extension-module/my_custom_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl SimplePulsarModule for MyCustomModule {
let mut extra = HashMap::new();
extra.insert("anomaly_score".to_string(), "1.0".to_string());

ctx.send_threat_derived(&event, desc, Some(extra.into()));
ctx.send_threat_derived(event, desc, Some(extra.into()));
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/pulsard/module_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ async fn run_module_manager_actor<T: PulsarModule>(mut actor: ModuleManager<T>)
}
}

#[allow(clippy::too_many_arguments)]
async fn run_module_loop<T: PulsarModule>(
mut config: T::Config,
mut state: T::State,
Expand Down

0 comments on commit c1bc87b

Please sign in to comment.