Skip to content

Commit 0151618

Browse files
committed
Fix a typo in variable name in TpmFormatZeroWarning
The typo standed out so I fixed it and changed to use `value`: the name of the parameter from [`std::convert::From`][FR] documentation. [FR]: https://doc.rust-lang.org/std/convert/trait.From.html Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
1 parent d53ed0c commit 0151618

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)