summaryrefslogtreecommitdiff
path: root/cli/npm/semver/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/npm/semver/mod.rs')
-rw-r--r--cli/npm/semver/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/npm/semver/mod.rs b/cli/npm/semver/mod.rs
index dd6ca03db..90352817f 100644
--- a/cli/npm/semver/mod.rs
+++ b/cli/npm/semver/mod.rs
@@ -174,12 +174,12 @@ pub struct NpmVersionReq {
}
impl NpmVersionMatcher for NpmVersionReq {
- fn matches(&self, version: &NpmVersion) -> bool {
- self.satisfies(version)
+ fn tag(&self) -> Option<&str> {
+ None
}
- fn is_latest(&self) -> bool {
- false
+ fn matches(&self, version: &NpmVersion) -> bool {
+ self.satisfies(version)
}
fn version_text(&self) -> String {