You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in code/ch7/ch7-actionkv1/src/lib.rs line 196..=198:
let next_byte = SeekFrom::End(0);
let current_position = f.seek(SeekFrom::Current(0))?;
f.seek(next_byte)?;
current_position does not necessarily reflects the end of the file, but a new record should always go to the end.
so, shouldn't it be just simple a one line:
let current_position = f.seek(SeekFrom::End(0))?;
Activity