@@ -6,7 +6,7 @@ use axum::{
66} ;
77use reqwest:: { Request , Response } ;
88use serde:: Deserialize ;
9- use serde_json:: Value ;
9+ use serde_json:: { json , Value } ;
1010use tracing:: { debug, info} ;
1111use uuid:: Uuid ;
1212use web_prover_core:: {
@@ -177,7 +177,7 @@ fn test_get_value_from_json_path() {
177177 }
178178 } ) ;
179179 let path = vec ! [ JsonKey :: String ( "foo" . to_string( ) ) , JsonKey :: String ( "bar" . to_string( ) ) ] ;
180- let value = get_value_from_json_path ( & json_body, & path) . unwrap ( ) ;
180+ let value = get_value_from_json_path ( & json_body, & path) ;
181181 assert_eq ! ( value, "baz" ) ;
182182}
183183
@@ -187,7 +187,7 @@ fn test_get_value_from_json_path_num() {
187187 "foo" : [ 1 , 2 , 3 ]
188188 } ) ;
189189 let path = vec ! [ JsonKey :: String ( "foo" . to_string( ) ) , JsonKey :: Num ( 1 ) ] ;
190- let value = get_value_from_json_path ( & json_body, & path) . unwrap ( ) ;
190+ let value = get_value_from_json_path ( & json_body, & path) ;
191191 assert_eq ! ( value, 2 ) ;
192192}
193193
@@ -199,7 +199,7 @@ fn test_get_value_from_json_path_bool() {
199199 }
200200 } ) ;
201201 let path = vec ! [ JsonKey :: String ( "foo" . to_string( ) ) , JsonKey :: String ( "bar" . to_string( ) ) ] ;
202- let value = get_value_from_json_path ( & json_body, & path) . unwrap ( ) ;
202+ let value = get_value_from_json_path ( & json_body, & path) ;
203203 assert_eq ! ( value, true ) ;
204204}
205205
@@ -211,6 +211,6 @@ fn test_get_value_from_json_path_null() {
211211 }
212212 } ) ;
213213 let path = vec ! [ JsonKey :: String ( "foo" . to_string( ) ) , JsonKey :: String ( "bar" . to_string( ) ) ] ;
214- let value = get_value_from_json_path ( & json_body, & path) . unwrap ( ) ;
214+ let value = get_value_from_json_path ( & json_body, & path) ;
215215 assert_eq ! ( value, Value :: Null ) ;
216216}
0 commit comments