Fix return type Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
1 files changed, 3 insertions(+), 4 deletions(-) M src/resolver.rs
M src/resolver.rs => src/resolver.rs +3 -4
@@ 7,10 7,9 @@ use crate::error::{Error, Result}; use crate::tokenizer::Token; use crate::object::{Object, ObjectType}; pub fn resolve<'doc, O, D>(obj: &'doc O, tokens: &Token, error_if_not_found: bool) -> Result<Option<&'doc D>> where D: Deserialize<'doc>, O: Object<'doc> pub fn resolve<'doc, O>(obj: &'doc O, tokens: &Token, error_if_not_found: bool) -> Result<Option<&'doc O>> where O: Object<'doc> { match obj.get_type() { ObjectType::Map => {