Skip to content

Commit

Permalink
Merge pull request #2 from pudnax/make_it_work
Browse files Browse the repository at this point in the history
Make it work on stable rust 1.53
  • Loading branch information
XiangpengHao committed Jun 22, 2021
2 parents 4f35c7f + 07a9d90 commit 839ee96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ pub struct Executor<F, const N: usize> {
}

impl<F: Future, const N: usize> Executor<F, N> {
const SAMPLE: Option<F> = None;
pub fn new() -> Self {
Executor {
task_queue: [None; N],
task_queue: [Self::SAMPLE; N],
}
}

Expand Down
3 changes: 0 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#![feature(const_generics)]
#![feature(const_in_array_repeat_expressions)]

use std::rc::Rc;
use std::time::Instant;
use structopt::StructOpt;
Expand Down

0 comments on commit 839ee96

Please sign in to comment.