websockets-rs / rust-websocket

A WebSocket (RFC6455) library written in Rust
http://websockets-rs.github.io/rust-websocket/
MIT License
1.55k stars 223 forks source link

Does the server.rs example need to use a move closure? #166

Closed anderspitman closed 5 years ago

anderspitman commented 6 years ago

See here.

It's not capturing anything from the parent scope so doesn't need to move, right? Seems to still compile and work without it for me.

anderspitman commented 6 years ago

I can do a quick PR if I'm correct but I wanted to ask first since I'm not very experienced with Rust.