gimli-rs / leb128

Read and write DWARF's "Little Endian Base 128" variable length integer encoding
http://gimli-rs.github.io/leb128/leb128/index.html
Apache License 2.0
18 stars 15 forks source link

Allow dyn traits to be used with io::Read #23

Closed asutton closed 3 years ago

asutton commented 3 years ago

Add a ?Sized constraint to read::signed and read::unsigned, allowing dyn traits to be used with those functions. This also makes them consistent with the write functions, which already impose that constraint.

Apparently, cargo fmt also restyled some code.

asutton commented 3 years ago

You're very welcome! Out of curiosity, when will this change be reflected in crates.io?

fitzgen commented 3 years ago

Already published!