mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
new_without_default
This commit is contained in:
parent
e7e09e7750
commit
d37f4e0d21
2 changed files with 2 additions and 3 deletions
|
@ -171,7 +171,6 @@ derived_hash_with_manual_eq = "allow"
|
|||
forget_non_drop = "allow"
|
||||
format_collect = "allow"
|
||||
needless_doctest_main = "allow"
|
||||
new_without_default = "allow"
|
||||
non_canonical_clone_impl = "allow"
|
||||
non_canonical_partial_ord_impl = "allow"
|
||||
self_named_constructors = "allow"
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue