Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Firstyear committed Nov 4, 2023
1 parent d175dd2 commit 8b4797d
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 @@ -12,6 +12,8 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
buffer_type!(Private, ::std::mem::size_of::<_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 @@ -25,6 +27,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 @@ -493,6 +493,8 @@ impl TryFrom<TPMT_PUBLIC> for 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 @@ -506,6 +508,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 8b4797d

Please sign in to comment.