Skip to content

Commit d37f4e0

Browse files
committed
new_without_default
1 parent e7e09e7 commit d37f4e0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ derived_hash_with_manual_eq = "allow"
171171
forget_non_drop = "allow"
172172
format_collect = "allow"
173173
needless_doctest_main = "allow"
174-
new_without_default = "allow"
175174
non_canonical_clone_impl = "allow"
176175
non_canonical_partial_ord_impl = "allow"
177176
self_named_constructors = "allow"

crates/hir-def/src/hir/format_args.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ pub(crate) fn parse(
433433
}
434434
}
435435

436-
#[derive(Debug, Clone, PartialEq, Eq)]
436+
#[derive(Clone, Debug, Default, Eq, PartialEq)]
437437
pub struct FormatArgumentsCollector {
438438
arguments: Vec<FormatArgument>,
439439
num_unnamed_args: usize,
@@ -452,7 +452,7 @@ impl FormatArgumentsCollector {
452452
}
453453

454454
pub fn new() -> Self {
455-
Self { arguments: vec![], names: vec![], num_unnamed_args: 0, num_explicit_args: 0 }
455+
Default::default()
456456
}
457457

458458
pub fn add(&mut self, arg: FormatArgument) -> usize {

0 commit comments

Comments
 (0)