Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Clippy issues #1441

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading