We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a0b70a commit f740c35Copy full SHA for f740c35
crates/sprout/src/platform/tpm.rs
@@ -85,7 +85,9 @@ impl PlatformTpm {
85
};
86
87
// Check if the TPM supports `GetActivePcrBanks`, and if it doesn't return zero.
88
- if handle.version().major < 1 || handle.version().major == 1 && handle.version().minor < 1 {
+ if (handle.version().major < 1)
89
+ || (handle.version().major == 1 && (handle.version().minor < 1))
90
+ {
91
return Ok(0);
92
}
93
0 commit comments