The IO libraries casted self to mut so they can pass it to seek(SEEK_CUR, 0).
Fix this by introducing a private seek function that takes &self
- of course one should be careful with it if he lacks an
exclusive reference to self.
|
||
|---|---|---|
| .. | ||
| io | ||
| lib.rs | ||
| task.rs | ||