This commit is contained in:
Nicolas Luck
2024-02-01 13:53:21 +01:00
parent a0e598b97e
commit 6586657658

View File

@@ -83,10 +83,8 @@ impl ToString for QueryResolution {
QueryResolution::True => "true".to_string(),
QueryResolution::False => "false".to_string(),
QueryResolution::Matches(matches) => {
let matches_json: Vec<String> = matches
.iter()
.map(prolog_match_to_json_string)
.collect();
let matches_json: Vec<String> =
matches.iter().map(prolog_match_to_json_string).collect();
format!("[{}]", matches_json.join(","))
}
}