Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/hir/format_args.rs')
-rw-r--r--crates/hir-def/src/hir/format_args.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-def/src/hir/format_args.rs b/crates/hir-def/src/hir/format_args.rs
index 22864b3289..b097a721c7 100644
--- a/crates/hir-def/src/hir/format_args.rs
+++ b/crates/hir-def/src/hir/format_args.rs
@@ -433,7 +433,7 @@ pub(crate) fn parse(
}
}
-#[derive(Debug, Clone, PartialEq, Eq)]
+#[derive(Clone, Debug, Default, Eq, PartialEq)]
pub struct FormatArgumentsCollector {
arguments: Vec<FormatArgument>,
num_unnamed_args: usize,
@@ -452,7 +452,7 @@ impl FormatArgumentsCollector {
}
pub fn new() -> Self {
- Self { arguments: vec![], names: vec![], num_unnamed_args: 0, num_explicit_args: 0 }
+ Default::default()
}
pub fn add(&mut self, arg: FormatArgument) -> usize {