Skip to content

Commit 6f5a50b

Browse files
generatedunixname89002005320881meta-codesync[bot]
authored andcommitted
Fix clippy::manual_inspect issues in fbcode/hermetic_infra/reverie/reverie-ptrace/src
Reviewed By: cjlongoria Differential Revision: D90660880 fbshipit-source-id: 6482c80e9d8356f449bf972d9708af487df8c24a
1 parent dec5b90 commit 6f5a50b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

reverie-ptrace/src/task.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -792,15 +792,13 @@ impl<L: Tool + 'static> TracedTask<L> {
792792
// Try to intercept cpuid instructions on x86_64
793793
#[cfg(target_arch = "x86_64")]
794794
if self.global_state.subscriptions.has_cpuid() {
795-
self.has_cpuid_interception = self.intercept_cpuid().await.map_err(|err| {
795+
self.has_cpuid_interception = self.intercept_cpuid().await.inspect_err(|&err| {
796796
match err {
797797
Errno::ENODEV => tracing::warn!(
798798
"Unable to intercept CPUID: Underlying hardware does not support CPUID faulting"
799799
),
800800
err => tracing::warn!("Unable to intercept CPUID: {}", err),
801801
}
802-
803-
err
804802
}).is_ok();
805803
}
806804

0 commit comments

Comments
 (0)