Skip to content

Commit

Permalink
Fix UB: Non-static callbacks are unsound
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Nov 11, 2023
1 parent 7cfc4de commit 463d3b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ws_guessing_game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ fn main() -> anyhow::Result<()> {
Ok(())
}

fn create_server<'a>() -> anyhow::Result<EspHttpServer<'a>> {
fn create_server() -> anyhow::Result<EspHttpServer> {
let peripherals = Peripherals::take()?;
let sys_loop = EspSystemEventLoop::take()?;
let nvs = EspDefaultNvsPartition::take()?;
Expand Down

0 comments on commit 463d3b5

Please sign in to comment.