clippy: Replace seek 0 by rewind

This commit is contained in:
Louis Dureuil 2023-01-30 17:17:35 +01:00
parent bfb1f9279b
commit 89675e5f15
No known key found for this signature in database
4 changed files with 11 additions and 11 deletions

View file

@ -198,7 +198,7 @@ impl From<KindWithContent> for KindDump {
#[cfg(test)]
pub(crate) mod test {
use std::fs::File;
use std::io::{Seek, SeekFrom};
use std::io::Seek;
use std::str::FromStr;
use big_s::S;
@ -410,7 +410,7 @@ pub(crate) mod test {
// create the dump
let mut file = tempfile::tempfile().unwrap();
dump.persist_to(&mut file).unwrap();
file.seek(SeekFrom::Start(0)).unwrap();
file.rewind().unwrap();
file
}