Skip to content

Commit f1a6f5a

Browse files
committed
updated deps
1 parent 664aa80 commit f1a6f5a

8 files changed

Lines changed: 490 additions & 393 deletions

File tree

Cargo.lock

Lines changed: 473 additions & 360 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cano"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
homepage = "https://github.com/nassor/cano"
55
edition = "2024"
66
description = "Simple & Fast Async Workflows in Rust - Build data processing pipelines with Tasks and Nodes"
@@ -29,7 +29,7 @@ all = ["scheduler", "tracing"]
2929
cargo-audit = "0.21.2"
3030
criterion = { version = "0.7", features = ["html_reports", "async_tokio"] }
3131
reqwest = { version = "0.12", features = ["json"] }
32-
rig-core = "0.16"
32+
rig-core = "0.20"
3333
wide = "0.7"
3434
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
3535
chrono = { version = "0.4", features = ["serde"] }

benches/node_performance.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ impl Node<TestState> for DoNothingNode {
3636

3737
async fn exec(&self, _prep_res: Self::PrepResult) -> Self::ExecResult {
3838
// Do nothing - minimal overhead
39-
()
4039
}
4140

4241
async fn post(

benches/workflow_performance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ fn is_prime(n: u64) -> bool {
194194
return false;
195195
}
196196
for i in 2..=(n as f64).sqrt() as u64 {
197-
if n % i == 0 {
197+
if n.is_multiple_of(i) {
198198
return false;
199199
}
200200
}

examples/mixed_workflow.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,6 @@ impl Node<WorkflowState> for ReportNode {
232232

233233
// Simulate report generation
234234
tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;
235-
236-
()
237235
}
238236

239237
async fn post(

examples/scheduler_graceful_shutdown.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ impl Node<MyState> for LongProcessingNode {
5252
async fn exec(&self, _data: Self::PrepResult) -> Self::ExecResult {
5353
// Simulate long-running work
5454
tokio::time::sleep(Duration::from_secs(5)).await;
55-
()
5655
}
5756

5857
async fn post(
@@ -77,9 +76,7 @@ impl Node<MyState> for QuickNode {
7776
Ok(())
7877
}
7978

80-
async fn exec(&self, _data: Self::PrepResult) -> Self::ExecResult {
81-
()
82-
}
79+
async fn exec(&self, _data: Self::PrepResult) -> Self::ExecResult {}
8380

8481
async fn post(
8582
&self,

src/node.rs

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -528,10 +528,10 @@ mod tests {
528528

529529
fn set_params(&mut self, params: DefaultParams) {
530530
self.params = params;
531-
if let Some(multiplier_str) = self.params.get("multiplier") {
532-
if let Ok(multiplier) = multiplier_str.parse::<i32>() {
533-
self.multiplier = multiplier;
534-
}
531+
if let Some(multiplier_str) = self.params.get("multiplier")
532+
&& let Ok(multiplier) = multiplier_str.parse::<i32>()
533+
{
534+
self.multiplier = multiplier;
535535
}
536536
}
537537

@@ -570,9 +570,7 @@ mod tests {
570570
Ok(())
571571
}
572572

573-
async fn exec(&self, _prep_res: Self::PrepResult) -> Self::ExecResult {
574-
()
575-
}
573+
async fn exec(&self, _prep_res: Self::PrepResult) -> Self::ExecResult {}
576574

577575
async fn post(
578576
&self,
@@ -927,9 +925,7 @@ mod tests {
927925
}
928926
}
929927

930-
async fn exec(&self, _prep_res: Self::PrepResult) -> Self::ExecResult {
931-
()
932-
}
928+
async fn exec(&self, _prep_res: Self::PrepResult) -> Self::ExecResult {}
933929

934930
async fn post(
935931
&self,
@@ -975,9 +971,7 @@ mod tests {
975971
Ok(())
976972
}
977973

978-
async fn exec(&self, _prep_res: Self::PrepResult) -> Self::ExecResult {
979-
()
980-
}
974+
async fn exec(&self, _prep_res: Self::PrepResult) -> Self::ExecResult {}
981975

982976
async fn post(
983977
&self,
@@ -1231,9 +1225,7 @@ mod tests {
12311225
}
12321226
}
12331227

1234-
async fn exec(&self, _prep_res: Self::PrepResult) -> Self::ExecResult {
1235-
()
1236-
}
1228+
async fn exec(&self, _prep_res: Self::PrepResult) -> Self::ExecResult {}
12371229

12381230
async fn post(
12391231
&self,
@@ -1278,9 +1270,7 @@ mod tests {
12781270
Err(CanoError::preparation("Always fails"))
12791271
}
12801272

1281-
async fn exec(&self, _prep_res: Self::PrepResult) -> Self::ExecResult {
1282-
()
1283-
}
1273+
async fn exec(&self, _prep_res: Self::PrepResult) -> Self::ExecResult {}
12841274

12851275
async fn post(
12861276
&self,

src/task.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -555,10 +555,10 @@ mod tests {
555555
impl Task<TestAction> for ParameterizedTask {
556556
fn set_params(&mut self, params: DefaultTaskParams) {
557557
self.params = params;
558-
if let Some(multiplier_str) = self.params.get("multiplier") {
559-
if let Ok(multiplier) = multiplier_str.parse::<i32>() {
560-
self.multiplier = multiplier;
561-
}
558+
if let Some(multiplier_str) = self.params.get("multiplier")
559+
&& let Ok(multiplier) = multiplier_str.parse::<i32>()
560+
{
561+
self.multiplier = multiplier;
562562
}
563563
}
564564

0 commit comments

Comments
 (0)