lemunozm / message-io

Fast and easy-to-use event-driven network library.
Apache License 2.0
1.11k stars 74 forks source link

Fix compile error: Make IOV live longer #163

Closed vars1ty closed 1 year ago

vars1ty commented 1 year ago

Fixes a compile error that I ran into today after running cargo update, where it complains that io::IoSliceMut::new(&mut input_buffer)] doesn't live long enough, so I moved it into its own mutable variable, named "iov" to solve it.

lemunozm commented 1 year ago

Thanks! There are some clippy errors by lines automatically changed by your IDE, once you fix them, I merge them 😃

lemunozm commented 1 year ago

@vars1ty could you fix the clippy issues in order to merge it?