changeset 49926:0780371d6b1e

rust-clippy: tell `clippy` we don't need to declare a default here This is a struct only useful for tests.
author Raphaël Gomès <rgomes@octobus.net>
date Mon, 09 Jan 2023 18:54:57 +0100
parents 49131579db62
children 2202832b35e8
files rust/hg-core/src/revlog/index.rs
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/index.rs	Mon Jan 09 18:50:29 2023 +0100
+++ b/rust/hg-core/src/revlog/index.rs	Mon Jan 09 18:54:57 2023 +0100
@@ -326,6 +326,7 @@
 
     #[cfg(test)]
     impl IndexEntryBuilder {
+        #[allow(clippy::new_without_default)]
         pub fn new() -> Self {
             Self {
                 is_first: false,