Skip to content

Commit a87da5d

Browse files
authored
Merge pull request #422 from wiktor-k/fix-typo
Fix a typo in variable name in `TpmFormatZeroWarning`
2 parents d53ed0c + 0151618 commit a87da5d

File tree

1 file changed

+2
-2
lines changed
  • tss-esapi/src/constants/return_code/tpm/format_zero

1 file changed

+2
-2
lines changed

tss-esapi/src/constants/return_code/tpm/format_zero/warning.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ impl TryFrom<u8> for TpmFormatZeroWarning {
7070
}
7171

7272
impl From<TpmFormatZeroWarning> for u8 {
73-
fn from(tpm_format_zeror_wraning: TpmFormatZeroWarning) -> u8 {
73+
fn from(value: TpmFormatZeroWarning) -> u8 {
7474
// This is safe because the values are well defined.
75-
tpm_format_zeror_wraning.to_u8().unwrap()
75+
value.to_u8().unwrap()
7676
}
7777
}

0 commit comments

Comments
 (0)