Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Nov 8, 2023
1 parent 28c48b5 commit fa685e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/rattler_tuf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ readme.workspace = true

[dependencies]
chrono = { version = "0.4.31", features = ["serde"] }
ed25519-dalek = "2.0.0"
ed25519-dalek = { version = "2.0.0", features = ["serde"] }
hex = "0.4.3"
serde = { version = "1.0.192", features = ["derive", "std"] }
serde_json = "1.0.108"
Expand Down
4 changes: 2 additions & 2 deletions crates/rattler_tuf/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ pub enum Type {
pub struct Payload {
pub delegations: BTreeMap<String, Delegation>,
pub expiration: DateTime<Utc>,
pub metadata_spec_version: MetadataSpecVersion,
pub timestamp: DateTime<Utc>,
pub version: Version,
#[serde(rename = "type")]
pub file_type: Type,
pub metadata_spec_version: MetadataSpecVersion,
pub version: Version,
}

impl Payload {
Expand Down
2 changes: 1 addition & 1 deletion crates/rattler_tuf/src/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ pub fn canonserialize(obj: &Value) -> Result<Vec<u8>, serde_json::Error> {
let pretty_json = to_string_pretty(&obj)?;
// Convert the JSON string to a utf-8 encoded vector of bytes

Check warning on line 6 in crates/rattler_tuf/src/serialize.rs

View workflow job for this annotation

GitHub Actions / Format, Lint and Test the Python bindings

Diff in /home/runner/work/rattler/rattler/crates/rattler_tuf/src/serialize.rs

Check warning on line 6 in crates/rattler_tuf/src/serialize.rs

View workflow job for this annotation

GitHub Actions / Format and Lint

Diff in /home/runner/work/rattler/rattler/crates/rattler_tuf/src/serialize.rs
Ok(pretty_json.into_bytes())
}
}

0 comments on commit fa685e7

Please sign in to comment.