Skip to content

Commit

Permalink
fix: found more pip references
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Nov 24, 2023
1 parent ae04193 commit b6a9d7e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/rattler_lock/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ impl LockedDependency {
}

/// Returns a reference to the internal [`PypiLockedDependency`] if this instance represents
/// a pip package.
pub fn as_pip(&self) -> Option<&PypiLockedDependency> {
/// a pypi package.
pub fn as_pypi(&self) -> Option<&PypiLockedDependency> {
match &self.kind {
LockedDependencyKind::Conda(_) => None,
LockedDependencyKind::Pypi(pip) => Some(pip),
LockedDependencyKind::Pypi(pypi) => Some(pypi),
}
}

Expand All @@ -178,8 +178,8 @@ impl LockedDependency {
matches!(self.kind, LockedDependencyKind::Conda(_))
}

/// Returns true if this instance represents a pip package.
pub fn is_pip(&self) -> bool {
/// Returns true if this instance represents a Pypi package.
pub fn is_pypi(&self) -> bool {
matches!(self.kind, LockedDependencyKind::Pypi(_))
}
}
Expand All @@ -204,7 +204,7 @@ impl From<PypiLockedDependency> for LockedDependencyKind {
}
}

/// The URL for the dependency (currently only used for pip packages)
/// The URL for the dependency (currently only used for pypi packages)
#[derive(Serialize, Deserialize, Eq, PartialEq, Clone, Debug, Hash)]
pub struct DependencySource {
// According to:
Expand Down

0 comments on commit b6a9d7e

Please sign in to comment.