Seek::rewind
RS-W1046Calling Seek::seek
with SeekFrom::Start(0)
as the position is equivalent to
Seek::rewind
. Consider using Seek::rewind
to improve readibility.
fn foo<T: io::Seek>(t: T) {
t.seek(SeekFrom::Start(0));
}
fn foo<T: io::Seek>(t: T) {
t.rewind();
}