clippy: use rewind instead of seek 0

This commit is contained in:
Louis Dureuil
2023-01-31 10:14:19 +01:00
parent 07603373f3
commit 771a367b97
2 changed files with 4 additions and 4 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
}