Skip to content

Commit

Permalink
Resuse profile impl
Browse files Browse the repository at this point in the history
  • Loading branch information
idavis committed Sep 24, 2024
1 parent 776ae9c commit 6b54784
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pip/src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Profile>::into(*self).to_str().to_owned()
}
}

Expand Down

0 comments on commit 6b54784

Please sign in to comment.