Skip to content

Commit

Permalink
fix(cargo): Allow metadata to be missing again
Browse files Browse the repository at this point in the history
This fixes a bug introduced by the port to kotlinx-serialization [1].

Resolves #7825.

[1]: #7709

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
  • Loading branch information
sschuberth committed Nov 8, 2023
1 parent e4f232a commit 5edbe72
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal data class CargoLockFile(
@SerialName("package")
val packages: List<Package>,

val metadata: Map<String, String>
val metadata: Map<String, String> = emptyMap()
) {
/**
* See https://docs.rs/cargo-lock/latest/cargo_lock/package/struct.Package.html.
Expand Down

0 comments on commit 5edbe72

Please sign in to comment.