fmt
This commit is contained in:
@@ -83,10 +83,8 @@ impl ToString for QueryResolution {
|
|||||||
QueryResolution::True => "true".to_string(),
|
QueryResolution::True => "true".to_string(),
|
||||||
QueryResolution::False => "false".to_string(),
|
QueryResolution::False => "false".to_string(),
|
||||||
QueryResolution::Matches(matches) => {
|
QueryResolution::Matches(matches) => {
|
||||||
let matches_json: Vec<String> = matches
|
let matches_json: Vec<String> =
|
||||||
.iter()
|
matches.iter().map(prolog_match_to_json_string).collect();
|
||||||
.map(prolog_match_to_json_string)
|
|
||||||
.collect();
|
|
||||||
format!("[{}]", matches_json.join(","))
|
format!("[{}]", matches_json.join(","))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user