Make the use of Self consistent. (#15074)

## Summary

Make the use of `Self` consistent. Mostly done by running `cargo clippy
--fix -- -A clippy::all -W clippy::use_self`.

## Test Plan

<!-- How was it tested? -->
No need.
This commit is contained in:
adamnemecek
2025-08-05 12:17:12 -07:00
committed by GitHub
parent 57f900ad0d
commit 3f83390e34
121 changed files with 1305 additions and 1376 deletions
+3 -3
View File
@@ -263,7 +263,7 @@ impl ManagedPythonInstallations {
let arch = Arch::from_env();
let libc = Libc::from_env()?;
let iter = ManagedPythonInstallations::from_settings(None)?
let iter = Self::from_settings(None)?
.find_all()?
.filter(move |installation| {
installation.key.os == os
@@ -627,7 +627,7 @@ impl ManagedPythonInstallation {
}
/// Returns `true` if self is a suitable upgrade of other.
pub fn is_upgrade_of(&self, other: &ManagedPythonInstallation) -> bool {
pub fn is_upgrade_of(&self, other: &Self) -> bool {
// Require matching implementation
if self.key.implementation != other.key.implementation {
return false;
@@ -764,7 +764,7 @@ impl PythonMinorVersionLink {
installation: &ManagedPythonInstallation,
preview: Preview,
) -> Option<Self> {
PythonMinorVersionLink::from_executable(
Self::from_executable(
installation.executable(false).as_path(),
installation.key(),
preview,