just a minor lint

Summary: Fix compiler warning.

Reviewed By: jasonwhite

Differential Revision: D35905514

fbshipit-source-id: 5320c9cb543756ef68830b3e0a07c3284a67b693
This commit is contained in:
Ryan Newton 2022-04-25 13:31:24 -07:00 committed by Facebook GitHub Bot
parent ab908fd184
commit cdba957ddb

View file

@ -74,7 +74,7 @@ fn full_family_model(vendor: &str, fi: &FeatureInfo) -> (u8, u8) {
pub(crate) fn get_rcb_perf_config() -> u64 {
let c = CpuId::new();
let vendor = c.get_vendor_info().unwrap();
let vendor_str = vendor.as_string();
let vendor_str = vendor.as_str();
match vendor_str {
AMD_VENDOR | INTEL_VENDOR => {}
s => panic!("Unknown CPU vendor: {}", s),