feat: clippy

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-09-24 22:10:38 +02:00
parent 8beaeb53d7
commit ca7c0c5c09
5 changed files with 8 additions and 8 deletions

View File

@@ -37,7 +37,7 @@ impl crunch::traits::Event for SomeEvent {
async fn main() -> anyhow::Result<()> {
tracing_subscriber::fmt::init();
let crunch = crunch::builder::Builder::default().build()?;
let crunch = crunch::Builder::default().build()?;
crunch
.subscribe(move |item: SomeEvent| async move {
tracing::info!(

View File

@@ -37,7 +37,7 @@ impl crunch::traits::Event for SomeEvent {
async fn main() -> anyhow::Result<()> {
tracing_subscriber::fmt::init();
let crunch = crunch::builder::Builder::default().build()?;
let crunch = crunch::Builder::default().build()?;
let counter = std::sync::Arc::new(std::sync::atomic::AtomicUsize::new(0));
let inner_counter = counter.clone();