Skip to content

Commit

Permalink
Remove global proc_future type
Browse files Browse the repository at this point in the history
  • Loading branch information
vertexclique committed Oct 24, 2019
1 parent 5be1840 commit b9b8e1c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lightproc/src/raw_proc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ use crate::state::*;

use std::panic::AssertUnwindSafe;

pub(crate) type ProcFuture<F> = CatchUnwind<AssertUnwindSafe<F>>;

/// Raw pointers to the fields of a task.
pub(crate) struct RawProc<F, R, S> {
pub(crate) pdata: *const ProcData,
Expand Down Expand Up @@ -121,7 +119,7 @@ where
let layout_pdata = Layout::new::<ProcData>();
let layout_t = Layout::new::<ProcStack>();
let layout_s = Layout::new::<S>();
let layout_f = Layout::new::<ProcFuture<F>>();
let layout_f = Layout::new::<CatchUnwind<AssertUnwindSafe<F>>>();
let layout_r = Layout::new::<R>();

let size_union = layout_f.size().max(layout_r.size());
Expand Down

0 comments on commit b9b8e1c

Please sign in to comment.