Skip to content

Commit

Permalink
Fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecardleitao committed Feb 8, 2024
1 parent 3b79602 commit 3cbc4c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/cache_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
"progress : {:.2}%",
(completed.len() as f64) / (required.len() as f64) * 100.0
);
let todo = required.intersection(&completed).collect::<HashSet<_>>();
let todo = required.difference(&completed).collect::<HashSet<_>>();
println!("todo : {}", todo.len());

Ok(())
Expand Down
2 changes: 1 addition & 1 deletion examples/export_legs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async fn main() -> Result<(), Box<dyn Error>> {

let completed = existing_months_positions(&client).await?;
log::info!("completed: {}", completed.len());
let todo = required.intersection(&completed).collect::<HashSet<_>>();
let todo = required.difference(&completed).collect::<HashSet<_>>();
log::info!("todo : {}", todo.len());

let tasks = todo
Expand Down

0 comments on commit 3cbc4c3

Please sign in to comment.