From 00898ad72e846e2436366650833d0e38806057a9 Mon Sep 17 00:00:00 2001 From: yuanchao Date: Thu, 10 Oct 2024 10:06:08 +0800 Subject: [PATCH] fix: compilation error --- agent/src/ebpf_dispatcher.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/src/ebpf_dispatcher.rs b/agent/src/ebpf_dispatcher.rs index d58e05848ab..41ed020aa4c 100644 --- a/agent/src/ebpf_dispatcher.rs +++ b/agent/src/ebpf_dispatcher.rs @@ -952,7 +952,7 @@ impl EbpfCollector { .find(|f| f.eq_ignore_ascii_case(feature)) .is_some() }) - .map(|p| p.match_regex.to_owned()) + .map(|p| p.match_regex.as_str()) .unwrap_or_default(); if !off_cpu.disabled { process_listener.register(feature, ebpf::set_feature_off_cpu); @@ -982,7 +982,7 @@ impl EbpfCollector { .find(|f| f.eq_ignore_ascii_case("ebpf.profile.memory")) .is_some() }) - .map(|p| p.match_regex.to_owned()) + .map(|p| p.match_regex.as_str()) .unwrap_or_default(); ebpf::set_feature_regex( ebpf::FEATURE_PROFILE_MEMORY,