rust-clippy: tell `clippy` we don't need to declare a default here
authorRaphaël Gomès <rgomes@octobus.net>
Mon, 09 Jan 2023 18:54:57 +0100
changeset 49926 0780371d6b1e
parent 49925 49131579db62
child 49927 2202832b35e8
rust-clippy: tell `clippy` we don't need to declare a default here This is a struct only useful for tests.
rust/hg-core/src/revlog/index.rs
--- 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,