# HG changeset patch # User Raphaël Gomès # Date 2023-01-09 17:54:57 # Node ID 0780371d6b1e37c2c00b3287cb0d1f42672ae13e # Parent 49131579db62babbf0a1cc6eb485cc360d8fcc82 rust-clippy: tell `clippy` we don't need to declare a default here This is a struct only useful for tests. diff --git a/rust/hg-core/src/revlog/index.rs b/rust/hg-core/src/revlog/index.rs --- a/rust/hg-core/src/revlog/index.rs +++ b/rust/hg-core/src/revlog/index.rs @@ -326,6 +326,7 @@ mod tests { #[cfg(test)] impl IndexEntryBuilder { + #[allow(clippy::new_without_default)] pub fn new() -> Self { Self { is_first: false,