Skip to content

Commit

Permalink
Update crossbeam version
Browse files Browse the repository at this point in the history
  • Loading branch information
markschl committed Dec 25, 2018
1 parent 5c7919a commit 5ee1448
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
authors = ["markschl <[email protected]>"]

[dependencies]
crossbeam = "0.4"
crossbeam = "0.6"

[profile.bench]
lto = true
4 changes: 2 additions & 2 deletions src/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ where
}

crossbeam::scope(|scope| {
let handle = scope.spawn(move || {
let handle = scope.spawn(move |_| {
let mut reader = init_reader()?;
while let Ok(Some(mut buffer)) = empty_recv.recv() {
if let Err(e) = buffer.refill(&mut reader) {
Expand Down Expand Up @@ -213,5 +213,5 @@ where
reader.get_errors()?;

Ok(out)
})
}).unwrap()
}
4 changes: 2 additions & 2 deletions src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ where
}

crossbeam::scope(|scope| {
let handle = scope.spawn::<_, Result<_, E>>(move || {
let handle = scope.spawn::<_, Result<_, E>>(move |_| {
let mut writer = init_writer()?;

while let Ok(msg) = full_recv.recv() {
Expand Down Expand Up @@ -257,5 +257,5 @@ where
writer.get_errors()?;

Ok((out, of.unwrap()))
})
}).unwrap()
}

0 comments on commit 5ee1448

Please sign in to comment.