From cdba957ddbc9eb7cc49794d4d4d46abbed474a24 Mon Sep 17 00:00:00 2001 From: Ryan Newton Date: Mon, 25 Apr 2022 13:31:24 -0700 Subject: [PATCH] just a minor lint Summary: Fix compiler warning. Reviewed By: jasonwhite Differential Revision: D35905514 fbshipit-source-id: 5320c9cb543756ef68830b3e0a07c3284a67b693 --- reverie-ptrace/src/timer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reverie-ptrace/src/timer.rs b/reverie-ptrace/src/timer.rs index 9d28ff4..e8e37bd 100644 --- a/reverie-ptrace/src/timer.rs +++ b/reverie-ptrace/src/timer.rs @@ -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),