Skip to content

Commit

Permalink
Fix Clippy issues (astral-sh#1441)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh authored Dec 9, 2024
1 parent 2d2c6ea commit 8e0c47c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rye/src/pyproject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion rye/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions rye/src/uv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8e0c47c

Please sign in to comment.