Instead of calling new(), we can just use a struct expression directly.
Before:
Placeholder::new(…, …, …, …)
After:
Placeholder {
position: …,
flags: …,
width: …,
precision: …,
}
|
||
|---|---|---|
| .. | ||
| builders.rs | ||
| float.rs | ||
| fmt_trait_method_doc.md | ||
| mod.rs | ||
| nofloat.rs | ||
| num.rs | ||
| rt.rs | ||