diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-05-01 18:02:50 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-05-01 18:02:50 +0200 |
commit | 896b31f02f67fe5c02b7fbe5fba08c9f9f34c023 (patch) | |
tree | 6b5f06ea1913b1c6021c198979f2ed1d43ac119f /Cargo.toml | |
parent | 6f197788a75f0b89b8729292a50eba2687efa21e (diff) | |
download | evtclib-896b31f02f67fe5c02b7fbe5fba08c9f9f34c023.tar.gz evtclib-896b31f02f67fe5c02b7fbe5fba08c9f9f34c023.tar.bz2 evtclib-896b31f02f67fe5c02b7fbe5fba08c9f9f34c023.zip |
take readers by value
The API guidelines for Rust state that readers should be taken by
value[1]. If the caller wants to re-use the reader, they have to borrow
it.
This patch adjusts the parsing functions to do just that.
[1]: https://rust-lang.github.io/api-guidelines/interoperability.html#generic-readerwriter-functions-take-r-read-and-w-write-by-value-c-rw-value
Diffstat (limited to 'Cargo.toml')
0 files changed, 0 insertions, 0 deletions