Skip to content

Commit

Permalink
feat: use UUID crate for arbitrary gpt type GUIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton committed May 21, 2024
1 parent c144990 commit cd7358e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ tera = "1"
merge-struct = "0.1.0"
clap = { version = "4.4", features = ["derive", "env"] }
nix = { version = "0.27", features = ["mount", "hostname", "dir"] }
uuid = "1.4.1"
uuid = { version = "1.4.1", features = ["v4"] }
loopdev-fyra = { version = "0.5.0" }
bytesize = { version = "1.3.0", features = ["serde"] }
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,9 @@ pub enum PartitionType {
Swap,
/// A generic partition that carries a Linux filesystem
LinuxGeneric,
/// An arbitrary GPT partition type GUID
/// An arbitrary GPT partition type GUID/UUIDv4
#[serde(untagged)]
Guid(String),
Guid(uuid::Uuid),

Check failure on line 633 in src/config.rs

View workflow job for this annotation

GitHub Actions / Check

the trait bound `Uuid: Deserialize<'_>` is not satisfied

Check failure on line 633 in src/config.rs

View workflow job for this annotation

GitHub Actions / Clippy

the trait bound `uuid::Uuid: builder::_::_serde::Deserialize<'_>` is not satisfied

Check failure on line 633 in src/config.rs

View workflow job for this annotation

GitHub Actions / unit-test

the trait bound `Uuid: Deserialize<'_>` is not satisfied
}

impl PartitionType {
Expand Down

0 comments on commit cd7358e

Please sign in to comment.