We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5818dcd commit c384761Copy full SHA for c384761
crates/cargo-util-schemas/src/lockfile.rs
@@ -20,14 +20,14 @@ pub struct TomlLockfile {
20
pub patch: TomlLockfilePatch,
21
}
22
23
+pub type TomlLockfileMetadata = BTreeMap<String, String>;
24
+
25
#[derive(Serialize, Deserialize, Debug, Default)]
26
#[cfg_attr(feature = "unstable-schema", derive(schemars::JsonSchema))]
27
pub struct TomlLockfilePatch {
28
pub unused: Vec<TomlLockfileDependency>,
29
30
-pub type TomlLockfileMetadata = BTreeMap<String, String>;
-
31
impl TomlLockfilePatch {
32
fn is_empty(&self) -> bool {
33
self.unused.is_empty()
0 commit comments