File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
compio-runtime/src/runtime Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ impl Default for FutureState {
48
48
49
49
pub ( crate ) struct RuntimeInner {
50
50
driver : RefCell < Proactor > ,
51
- local_runnables : SendWrapper < Arc < RefCell < VecDeque < Runnable > > > > ,
51
+ local_runnables : Arc < SendWrapper < RefCell < VecDeque < Runnable > > > > ,
52
52
sync_runnables : Arc < SegQueue < Runnable > > ,
53
53
op_runtime : RefCell < OpRuntime > ,
54
54
#[ cfg( feature = "time" ) ]
@@ -59,9 +59,7 @@ impl RuntimeInner {
59
59
pub fn new ( builder : & ProactorBuilder ) -> io:: Result < Self > {
60
60
Ok ( Self {
61
61
driver : RefCell :: new ( builder. build ( ) ?) ,
62
- // Arc to send to another thread, but only in current thread will the inner be accessed.
63
- #[ allow( clippy:: arc_with_non_send_sync) ]
64
- local_runnables : SendWrapper :: new ( Arc :: new ( RefCell :: new ( VecDeque :: new ( ) ) ) ) ,
62
+ local_runnables : Arc :: new ( SendWrapper :: new ( RefCell :: new ( VecDeque :: new ( ) ) ) ) ,
65
63
sync_runnables : Arc :: new ( SegQueue :: new ( ) ) ,
66
64
op_runtime : RefCell :: default ( ) ,
67
65
#[ cfg( feature = "time" ) ]
You can’t perform that action at this time.
0 commit comments