Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Firstyear committed Dec 14, 2023
1 parent 12d0f4b commit ea4b3da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .codespellrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[codespell]
skip = .git,target,Cargo.lock
ignore-words-list = acsend,crate,keypair,daa
ignore-words-list = acsend,crate,keypair,daa,de,ser
4 changes: 4 additions & 0 deletions tss-esapi/src/structures/buffers/private.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ buffer_type!(Private, ::std::mem::size_of::<_PRIVATE>(), TPM2B_PRIVATE);
impl_mu_standard!(Private, TPM2B_PRIVATE);

impl Serialize for Private {
/// Serialise the [Private] data into it's bytes representation of the TCG
/// TPM2B_PRIVATE structure.
fn serialize<S>(&self, serializer: S) -> std::result::Result<S::Ok, S::Error>
where
S: Serializer,
Expand All @@ -23,6 +25,8 @@ impl Serialize for Private {
}

impl<'de> Deserialize<'de> for Private {
/// Deserialise the [Private] data from it's bytes representation of the TCG
/// TPM2B_PRIVATE structure.
fn deserialize<D>(deserializer: D) -> std::result::Result<Self, D::Error>
where
D: Deserializer<'de>,
Expand Down
4 changes: 4 additions & 0 deletions tss-esapi/src/structures/tagged/public.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,8 @@ impl TryFrom<TPMT_PUBLIC> for Public {
impl_mu_standard!(Public, TPMT_PUBLIC);

impl Serialize for Public {
/// Serialise the [Public] data into it's bytes representation of the TCG
/// TPMT_PUBLIC structure.
fn serialize<S>(&self, serializer: S) -> std::result::Result<S::Ok, S::Error>
where
S: Serializer,
Expand All @@ -508,6 +510,8 @@ impl Serialize for Public {
}

impl<'de> Deserialize<'de> for Public {
/// Deserialise the [Public] data from it's bytes representation of the TCG
/// TPMT_PUBLIC structure.
fn deserialize<D>(deserializer: D) -> std::result::Result<Self, D::Error>
where
D: Deserializer<'de>,
Expand Down

0 comments on commit ea4b3da

Please sign in to comment.