Skip to content

Commit

Permalink
Resolve unused mutable warning (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Dec 28, 2024
1 parent ca2c157 commit dbf1936
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ fn init(enable_io: bool) -> (Runtime, LocalSet) {
}

fn new_local() -> LocalSet {
#[cfg(not(tokio_unstable))]
let local = LocalSet::new();

#[cfg(tokio_unstable)]
let mut local = LocalSet::new();

#[cfg(tokio_unstable)]
Expand Down

0 comments on commit dbf1936

Please sign in to comment.