Skip to content

Commit c384761

Browse files
committed
refactor: rearrange definitions
Moves struct definitions and impls closer together to make reading easier
1 parent 5818dcd commit c384761

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/cargo-util-schemas/src/lockfile.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ pub struct TomlLockfile {
2020
pub patch: TomlLockfilePatch,
2121
}
2222

23+
pub type TomlLockfileMetadata = BTreeMap<String, String>;
24+
2325
#[derive(Serialize, Deserialize, Debug, Default)]
2426
#[cfg_attr(feature = "unstable-schema", derive(schemars::JsonSchema))]
2527
pub struct TomlLockfilePatch {
2628
pub unused: Vec<TomlLockfileDependency>,
2729
}
2830

29-
pub type TomlLockfileMetadata = BTreeMap<String, String>;
30-
3131
impl TomlLockfilePatch {
3232
fn is_empty(&self) -> bool {
3333
self.unused.is_empty()

0 commit comments

Comments
 (0)