We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9553f01 commit bd31c3fCopy full SHA for bd31c3f
crates/spfs/src/tracking/env.rs
@@ -273,6 +273,7 @@ impl EnvSpecItem {
273
}
274
275
/// Returns true if this item is a live layer file
276
+ #[inline]
277
pub fn is_livelayer(&self) -> bool {
278
matches!(self, Self::SpecFile(SpecFile::LiveLayer(_)))
279
@@ -416,7 +417,7 @@ impl EnvSpec {
416
417
let mut new_items: Vec<EnvSpecItem> = Vec::with_capacity(self.items.len());
418
for item in &self.items {
419
// Filter out the LiveLayers entirely because they do not have digests
- if let EnvSpecItem::SpecFile(_) = item {
420
+ if item.is_livelayer() {
421
continue;
422
423
new_items.push(self.resolve_tag_item_to_digest_item(item, repos).await?);
0 commit comments