From 6b54784017ae9bb4f15d5943d5926070ef4a0037 Mon Sep 17 00:00:00 2001 From: Ian Davis Date: Tue, 24 Sep 2024 11:21:24 -0700 Subject: [PATCH] Resuse profile impl --- pip/src/interpreter.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pip/src/interpreter.rs b/pip/src/interpreter.rs index 8aa35b04db..f4d61bafaf 100644 --- a/pip/src/interpreter.rs +++ b/pip/src/interpreter.rs @@ -114,12 +114,7 @@ pub(crate) enum TargetProfile { #[allow(clippy::trivially_copy_pass_by_ref)] impl TargetProfile { fn __str__(&self) -> String { - match self { - TargetProfile::Base => "Base", - TargetProfile::Adaptive_RI => "Adaptive_RI", - TargetProfile::Unrestricted => "Unrestricted", - } - .to_owned() + Into::::into(*self).to_str().to_owned() } }