Follow-up: clean up imports.

This commit is contained in:
Richard Newman 2017-06-16 13:30:41 -07:00
parent eaf3e7fc4b
commit d1ad3c47f7

View file

@ -13,14 +13,11 @@ extern crate mentat_query;
extern crate mentat_query_algebrizer;
extern crate mentat_query_parser;
use std::collections::BTreeMap;
use mentat_core::{
Attribute,
Entid,
Schema,
ValueType,
TypedValue,
};
use mentat_query_parser::{
@ -34,9 +31,7 @@ use mentat_query::{
};
use mentat_query_algebrizer::{
BindingError,
ConjoiningClauses,
ComputedTable,
EmptyBecause,
Error,
ErrorKind,
@ -80,11 +75,6 @@ fn bails(schema: &Schema, input: &str) -> Error {
algebrize(schema.into(), parsed).expect_err("algebrize to have failed")
}
fn bails_with_inputs(schema: &Schema, input: &str, inputs: QueryInputs) -> Error {
let parsed = parse_find_string(input).expect("query input to have parsed");
algebrize_with_inputs(schema, parsed, 0, inputs).expect_err("algebrize to have failed")
}
fn alg(schema: &Schema, input: &str) -> ConjoiningClauses {
let parsed = parse_find_string(input).expect("query input to have parsed");
algebrize(schema.into(), parsed).expect("algebrizing to have succeeded").cc