Mercurial > public > mercurial-scm > hg
comparison rust/hg-core/src/repo.rs @ 51117:532e74ad3ff6
rust: run a clippy pass with the latest stable version
Our current version of clippy is older than the latest stable.
The newest version has new lints that are moslty good advice, so let's apply
them ahead of time. This has the added benefit of reducing the noise for
developpers like myself that use clippy as an IDE helper, as well as being
more prepared for a future clippy upgrade.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Mon, 06 Nov 2023 11:06:08 +0100 |
parents | 1928b770e3e7 |
children | 13f58ce70299 |
comparison
equal
deleted
inserted
replaced
51116:d58e754f2db0 | 51117:532e74ad3ff6 |
---|---|
684 if append { | 684 if append { |
685 file.seek(SeekFrom::Start(old_data_size as u64))?; | 685 file.seek(SeekFrom::Start(old_data_size as u64))?; |
686 } | 686 } |
687 file.write_all(&data)?; | 687 file.write_all(&data)?; |
688 file.flush()?; | 688 file.flush()?; |
689 file.seek(SeekFrom::Current(0)) | 689 file.stream_position() |
690 })() | 690 })() |
691 .when_writing_file(&data_filename)?; | 691 .when_writing_file(&data_filename)?; |
692 | 692 |
693 let packed_dirstate = DirstateDocket::serialize( | 693 let packed_dirstate = DirstateDocket::serialize( |
694 parents, | 694 parents, |