tokio-rs / bytes

Utilities for working with bytes
MIT License
1.91k stars 286 forks source link

set_vec_pos does not need a second parameter #672

Closed braddunbar closed 9 months ago

braddunbar commented 9 months ago

The second argument to set_vec_pos always contains the value of self.data. Let's just use self.data and remove the second parameter altogether.