From b9193ddb61546372a3f93eae8f51310cd0398036 Mon Sep 17 00:00:00 2001 From: Christian Legnitto Date: Wed, 29 Jan 2020 02:45:17 -0500 Subject: [PATCH] Remove deprecated function --- juniper_rocket/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/juniper_rocket/src/lib.rs b/juniper_rocket/src/lib.rs index 32f60209..4b542d5d 100644 --- a/juniper_rocket/src/lib.rs +++ b/juniper_rocket/src/lib.rs @@ -266,7 +266,7 @@ where } else { match value.url_decode() { Ok(v) => query = Some(v), - Err(e) => return Err(e.description().to_string()), + Err(e) => return Err(e.to_string()), } } } @@ -278,7 +278,7 @@ where } else { match value.url_decode() { Ok(v) => operation_name = Some(v), - Err(e) => return Err(e.description().to_string()), + Err(e) => return Err(e.to_string()), } } } @@ -289,11 +289,11 @@ where let decoded; match value.url_decode() { Ok(v) => decoded = v, - Err(e) => return Err(e.description().to_string()), + Err(e) => return Err(e.to_string()), } variables = Some( serde_json::from_str::>(&decoded) - .map_err(|err| err.description().to_owned())?, + .map_err(|err| err.to_string())?, ); } }