x11rb
x11rb copied to clipboard
Consider using serialize_into in request struct serializations
Now that the fixed length request is built out of a Vec, serialize_into could be used to fill it out. For efficiency you'd ideally preallocate the Vec's buffer with a Vec::with_capacity
call up front, which would require calculating the total size of the buffer. Currently rustc does that for us. The additional complexity in the generator may not be worth it.