minor compiler warning

Summary: Just another simple compiler warning fix.

Reviewed By: jasonwhite

Differential Revision: D35966952

fbshipit-source-id: 9656519ef0e0164cfda98326d0fa9b74e6a3f78d
This commit is contained in:
Ryan Newton 2022-04-29 08:06:47 -07:00 committed by Facebook GitHub Bot
parent 4d5c226d5a
commit 05446620a2

View file

@ -367,7 +367,7 @@ fn check_for_arch_bugs(_precise_ip: bool) -> Result<(), PmuValidationError> {
let feature_info = c
.get_feature_info()
.ok_or(PmuValidationError::CouldNotReadCpuInfo)?;
let vendor_str = vendor.as_string();
let vendor_str = vendor.as_str();
match vendor_str {
AMD_VENDOR if is_amd_zen(feature_info) => check_for_zen_speclockmap(),