Skip to content

Commit 3b71755

Browse files
committed
Expose RuleError from crate root
1 parent ff00b0c commit 3b71755

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ pub mod parser;
190190
mod value;
191191
mod types;
192192
mod schema;
193-
pub mod validation;
193+
mod validation;
194194
mod executor;
195195
mod integrations;
196196

@@ -204,7 +204,7 @@ use std::collections::HashMap;
204204
use rustc_serialize::json::{ToJson, Json};
205205

206206
use parser::{parse_document_source, ParseError, Spanning, SourcePosition};
207-
use validation::{RuleError, ValidatorContext, visit_all_rules, validate_input_values};
207+
use validation::{ValidatorContext, visit_all_rules, validate_input_values};
208208
use executor::execute_validated_query;
209209

210210
pub use ast::{ToInputValue, FromInputValue, InputValue, Type, Selection};
@@ -213,6 +213,7 @@ pub use types::base::{Arguments, GraphQLType, TypeKind};
213213
pub use executor::{
214214
Executor, Registry, ExecutionResult, ExecutionError, FieldResult, IntoFieldResult,
215215
};
216+
pub use validation::RuleError;
216217
pub use types::scalars::ID;
217218
pub use schema::model::RootNode;
218219

0 commit comments

Comments
 (0)