Skip to content

Commit

Permalink
fix: move npm to bottom of serialized file
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Aug 24, 2023
1 parent 5a2eb90 commit 52c8f77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ pub struct LockfileContent {
version: String,
// Mapping between URLs and their checksums for "http:" and "https:" deps
remote: BTreeMap<String, String>,
#[serde(skip_serializing_if = "NpmContent::is_empty")]
#[serde(default)]
pub npm: NpmContent,
#[serde(skip_serializing_if = "BTreeMap::is_empty")]
#[serde(default)]
pub redirects: BTreeMap<String, String>,
#[serde(skip_serializing_if = "NpmContent::is_empty")]
#[serde(default)]
pub npm: NpmContent,
}

impl LockfileContent {
Expand Down

0 comments on commit 52c8f77

Please sign in to comment.