Skip to content

Commit ca706a4

Browse files
committed
refactor(toml): Be consistent in how we initialize warnings
This resolves feedback from #13664
1 parent 8a74899 commit ca706a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/util/toml/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ pub fn read_manifest(
4848
source_id: SourceId,
4949
gctx: &GlobalContext,
5050
) -> CargoResult<EitherManifest> {
51-
let mut warnings = vec![];
52-
let mut errors = vec![];
51+
let mut warnings = Default::default();
52+
let mut errors = Default::default();
5353

5454
let contents =
5555
read_toml_string(path, gctx).map_err(|err| ManifestError::new(err, path.into()))?;

0 commit comments

Comments
 (0)