diff options
Diffstat (limited to 'cli/npm/cache.rs')
-rw-r--r-- | cli/npm/cache.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/npm/cache.rs b/cli/npm/cache.rs index 3c37aebe9..1ad6bf72a 100644 --- a/cli/npm/cache.rs +++ b/cli/npm/cache.rs @@ -277,7 +277,7 @@ impl ReadonlyNpmCache { let name = parts.join("/"); let (version, copy_index) = if let Some((version, copy_count)) = version_part.split_once('_') { - (version, copy_count.parse::<usize>().ok()?) + (version, copy_count.parse::<u8>().ok()?) } else { (version_part, 0) }; |