Skip to content

Commit

Permalink
use empty struct instead of map to retain Eq
Browse files Browse the repository at this point in the history
  • Loading branch information
tingerrr committed Jan 7, 2024
1 parent 927a46b commit 5c78120
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bundler/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,12 @@ fn write_archive(info: &PackageInfo, buf: &[u8]) -> anyhow::Result<()> {
}

/// A parsed package manifest.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize)]
#[serde(deny_unknown_fields)]
struct PackageManifest {
package: PackageInfo,
#[serde(skip_serializing_if = "Option::is_none")]
tool: Option<toml::Table>,
tool: Option<Tool>,
}

/// The `package` key in the manifest.
Expand All @@ -170,3 +170,7 @@ struct PackageInfo {
#[serde(default)]
exclude: Vec<String>,
}

/// The `tool` key in the manifest.
#[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize)]
struct Tool {}

0 comments on commit 5c78120

Please sign in to comment.