Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzeng0 committed Feb 8, 2024
1 parent 63a0ba1 commit 9759a48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/container/zero_alloc/linked_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ impl NodeInner {
}

fn linked(&self) -> bool {
self.prev.is_null()
!self.prev.is_null()
}

unsafe fn set_next(&mut self, next: &mut Self) {
Expand Down
2 changes: 1 addition & 1 deletion src/coroutines/select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl<T1: SyncTask, T2: SyncTask> SelectData<T1, T2> {

unsafe { self.handle_2.run() };

if !self.handle_2.done() {
if self.handle_2.done() {
*self.sync_done.as_mut() = true;

let _ = unsafe { self.handle_1.try_cancel().unwrap() };
Expand Down

0 comments on commit 9759a48

Please sign in to comment.