unimportant change

This commit is contained in:
filipriec
2025-06-17 10:27:22 +02:00
parent 248d54a30f
commit 3dfa922b9e

View File

@@ -1,7 +1,7 @@
// src/utils/data_converter.rs // src/utils/data_converter.rs
use common::proto::multieko2::table_structure::TableStructureResponse; use common::proto::multieko2::table_structure::TableStructureResponse;
use prost_types::{value::Kind, NullValue, Value}; // Removed unused anyhow use prost_types::{value::Kind, NullValue, Value};
use std::collections::HashMap; use std::collections::HashMap;
pub fn convert_and_validate_data( pub fn convert_and_validate_data(
@@ -19,7 +19,7 @@ pub fn convert_and_validate_data(
let expected_type = type_map.get(key.as_str()).unwrap_or(&"TEXT"); let expected_type = type_map.get(key.as_str()).unwrap_or(&"TEXT");
let kind = if str_value.is_empty() { let kind = if str_value.is_empty() {
// CHANGE THIS: Use the correct enum variant // TODO: Use the correct enum variant
Kind::NullValue(NullValue::NullValue.into()) Kind::NullValue(NullValue::NullValue.into())
} else { } else {
// Attempt to parse the string based on the expected type // Attempt to parse the string based on the expected type