From 8e0c47cdaebcc789fc0a7b97d11e9d7284ea8dce Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Mon, 9 Dec 2024 13:45:34 -0500 Subject: [PATCH] Fix Clippy issues (#1441) --- rye/src/pyproject.rs | 2 +- rye/src/utils/mod.rs | 2 +- rye/src/uv.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rye/src/pyproject.rs b/rye/src/pyproject.rs index 34dcd5c41e..4504d32a0c 100644 --- a/rye/src/pyproject.rs +++ b/rye/src/pyproject.rs @@ -58,7 +58,7 @@ pub enum DependencyKind<'a> { Optional(Cow<'a, str>), } -impl<'a> fmt::Display for DependencyKind<'a> { +impl fmt::Display for DependencyKind<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { DependencyKind::Normal => f.write_str("regular"), diff --git a/rye/src/utils/mod.rs b/rye/src/utils/mod.rs index 9c567212d8..04be999472 100644 --- a/rye/src/utils/mod.rs +++ b/rye/src/utils/mod.rs @@ -194,7 +194,7 @@ pub fn get_short_executable_name(path: &Path) -> String { pub fn format_requirement(req: &Requirement) -> impl fmt::Display + '_ { struct Helper<'x>(&'x Requirement); - impl<'x> fmt::Display for Helper<'x> { + impl fmt::Display for Helper<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "{}", self.0.name)?; if let Some(extras) = &self.0.extras { diff --git a/rye/src/uv.rs b/rye/src/uv.rs index e1d629df60..bba948dbb4 100644 --- a/rye/src/uv.rs +++ b/rye/src/uv.rs @@ -640,8 +640,8 @@ impl ReadWriteVenv { } /// Resolves the given requirement and returns the resolved requirement. - - /// This will spawn `uv` and read from it's stdout. + /// + /// This will spawn `uv` and read from its stdout. pub fn resolve( &self, py_version: &PythonVersion,