Skip to content

Commit

Permalink
Update src/machine/parsed_results.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Bennet Bleßmann <bennet.blessmann+github@googlemail.com>
  • Loading branch information
mthom and Skgland committed Feb 9, 2024
1 parent 614850a commit b43f097
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/machine/parsed_results.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub enum QueryResolution {
Matches(Vec<QueryMatch>),
}

pub fn prolog_value_to_json_tring(value: Value) -> String {
pub fn prolog_value_to_json_string(value: Value) -> String {
match value {
Value::Integer(i) => format!("{}", i),
Value::Float(f) => format!("{}", f),
Expand Down Expand Up @@ -41,7 +41,7 @@ pub fn prolog_value_to_json_tring(value: Value) -> String {
if i > 0 {
string_result.push(',');
}
string_result.push_str(&prolog_value_to_json_tring(v.clone()));
string_result.push_str(&prolog_value_to_json_string(v.clone()));
}
string_result.push(']');
string_result
Expand All @@ -52,7 +52,7 @@ pub fn prolog_value_to_json_tring(value: Value) -> String {
if i > 0 {
string_result.push(',');
}
string_result.push_str(&prolog_value_to_json_tring(v.clone()));
string_result.push_str(&prolog_value_to_json_string(v.clone()));
}
string_result.push(']');
string_result
Expand All @@ -70,7 +70,7 @@ fn prolog_match_to_json_string(query_match: &QueryMatch) -> String {
string_result.push_str(&format!(
"\"{}\":{}",
k,
prolog_value_to_json_tring(v.clone())
prolog_value_to_json_string(v.clone())
));
}
string_result.push('}');
Expand Down

0 comments on commit b43f097

Please sign in to comment.