From 09432a8697ad56e845a833156bf0a0afa520da3f Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 9 May 2020 10:17:21 +0200 Subject: [PATCH] Fix return type Signed-off-by: Matthias Beyer --- src/resolver.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/resolver.rs b/src/resolver.rs index e34c6d0..2ed92e7 100644 --- a/src/resolver.rs +++ b/src/resolver.rs @@ -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> - where D: Deserialize<'doc>, - O: Object<'doc> +pub fn resolve<'doc, O>(obj: &'doc O, tokens: &Token, error_if_not_found: bool) + -> Result> + where O: Object<'doc> { match obj.get_type() { ObjectType::Map => { -- 2.45.2