Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kirawi committed Jan 28, 2023
1 parent a11c661 commit 94b869b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helix-core/src/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub fn serialize_history(file: File, history: &History) -> std::io::Result<()> {

pub fn deserialize_history(file: File) -> std::io::Result<History> {
let mut reader = std::io::BufReader::new(file);
if HEADER_TAG != &read_string(&mut reader)? {
if HEADER_TAG != read_string(&mut reader)? {
Err(std::io::Error::new(
std::io::ErrorKind::Other,
"missing undofile header",
Expand All @@ -90,7 +90,7 @@ pub fn deserialize_history(file: File) -> std::io::Result<History> {
let timestamp = Instant::now();
let current = read_usize(&mut reader)?;
let revisions = read_vec(&mut reader, |reader| {
deserialize_revision(reader, timestamp.clone())
deserialize_revision(reader, timestamp)
})?;
Ok(History { current, revisions })
}
Expand Down

0 comments on commit 94b869b

Please sign in to comment.