fn check(self) -> Result<Self, CreationManifestError> {
        for (resource_path, _) in self.external_contents.iter().chain(self.far_contents.iter()) {
            crate::path::check_resource_path(&resource_path).map_err(|e| {
                CreationManifestError::ResourcePath { cause: e, path: resource_path.clone() }
            })?;
        }
        for (resource_path, _) in self.external_contents.iter() {
            if resource_path.starts_with("meta/") {
                return Err(CreationManifestError::ExternalContentInMetaDirectory {
                    path: resource_path.to_string(),
                });
            }
        }
        Ok(self)
    }
// Validate all package resource paths and make sure no external contents are in the
// "meta/" package directory.
Validate all package resource paths and make sure no external contents are in the
"meta/" package directory.
Validate all package resource paths and make sure no external contents are in the " meta / " package directory .
fn check(self) -> Result<Self, CreationManifestError> {
        for (resource_path, _) in self.external_contents.iter().chain(self.far_contents.iter()) {
            crate::path::check_resource_path(&resource_path).map_err(|e| {
                CreationManifestError::ResourcePath { cause: e, path: resource_path.clone() }
            })?;
        }
        for (resource_path, _) in self.external_contents.iter() {
            if resource_path.starts_with("meta/") {
                return Err(CreationManifestError::ExternalContentInMetaDirectory {
                    path: resource_path.to_string(),
                });
            }
        }
        Ok(self)
    }
fn check ( self ) -> Result < Self , CreationManifestError > { for ( resource_path , _ ) in self . external_contents . iter ( ) . chain ( self . far_contents . iter ( ) ) { crate :: path :: check_resource_path ( & resource_path ) . map_err ( | e | { CreationManifestError :: ResourcePath { cause : e , path : resource_path . clone ( ) } } ) ? ; } for ( resource_path , _ ) in self . external_contents . iter ( ) { if resource_path . starts_with ( " " ) { return Err ( CreationManifestError :: ExternalContentInMetaDirectory { path : resource_path . to_string ( ) , } ) ; } } Ok ( self ) }
Validate all package resource paths and make sure no external contents are in the
"meta/" package directory.
Validate all package resource paths and make sure no external contents are in the " meta / " package directory .
self
self