From c9ddf436da5292260aa487a54ee8e776b83fdca2 Mon Sep 17 00:00:00 2001 From: sankethn-spruce Date: Fri, 13 Sep 2024 14:46:48 +0530 Subject: [PATCH] update namepace names --- src/presentation/reader.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/presentation/reader.rs b/src/presentation/reader.rs index 04e10e1..80cfce5 100644 --- a/src/presentation/reader.rs +++ b/src/presentation/reader.rs @@ -254,10 +254,10 @@ impl SessionManager { .into_inner(); // Check if at least one of the two namespaces exists - let namespace_1_exists = namespaces.contains_key("org.iso.18013.5.1"); - let namespace_2_exists = namespaces.contains_key("org.iso.18013.5.1.aamva"); + let core_namespace_exists = namespaces.contains_key("org.iso.18013.5.1"); + let aamva_namespace_exists = namespaces.contains_key("org.iso.18013.5.1.aamva"); - if !namespace_1_exists && !namespace_2_exists { + if !core_namespace_exists && !aamva_namespace_exists { return Err(Error::IncorrectNamespace); }